File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ interface QuickPickItemWithPath extends QuickPickItem {
1010
1111const projectRoot = workspace . rootPath ? workspace . rootPath : '.' ;
1212
13+ console . log ( projectRoot )
1314export function activate ( context : ExtensionContext ) {
1415
1516 ( async ( ) => {
@@ -25,7 +26,7 @@ export function activate(context: ExtensionContext) {
2526 }
2627 const lines = stdout . split ( / \n / ) . filter ( l => l !== '' ) ;
2728 if ( ! lines . length ) {
28- window . showInformationMessage ( 'There are no items' )
29+ window . showInformationMessage ( 'There are no items. ' )
2930 return resolve ( [ ] ) ;
3031 }
3132 return resolve ( lines . map ( l => {
@@ -41,10 +42,9 @@ export function activate(context: ExtensionContext) {
4142 } ) ;
4243 } ) ;
4344
44- const options : QuickPickOptions = {
45- matchOnDescription : true ,
46- } ;
45+ const options : QuickPickOptions = { matchOnDescription : true } ;
4746 const item = await window . showQuickPick ( fetchItems ( ) , options ) ;
47+ if ( ! item ) return ;
4848 const [ file , line ] = item . fullPath . split ( ':' ) ;
4949 const doc = await workspace . openTextDocument ( projectRoot + '/' + file ) ;
5050 await window . showTextDocument ( doc ) ;
You can’t perform that action at this time.
0 commit comments