File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ export async function selectWorkspaceFile(
4343 throw new Error ( localize ( 'couldNotDetermineWorkspaceFolder' , 'Could not determine which workspace folder to search through.' ) ) ;
4444 }
4545
46- const relativePattern : RelativePattern = new RelativePattern (
46+ const pattern : RelativePattern = new RelativePattern (
4747 context . rootFolder ?? workspace . workspaceFolders [ 0 ] ,
4848 globPattern ?? '**/*'
4949 ) ;
50- const files = await workspace . findFiles ( relativePattern ) ;
50+ const files : Uri [ ] = await workspace . findFiles ( pattern ) ;
5151
5252 // If dockerfile(s), log the count
5353 if ( globPattern === dockerfileGlobPattern || globPattern === `**/${ dockerfileGlobPattern } ` ) {
@@ -67,7 +67,7 @@ export async function selectWorkspaceFile(
6767 quickPicks . push ( ...files . map ( ( uri : Uri ) => {
6868 return {
6969 label : basename ( uri . path ) ,
70- description : relative ( relativePattern . baseUri . path , uri . path ) ,
70+ description : relative ( pattern . baseUri . path , uri . path ) ,
7171 data : uri . fsPath
7272 } ;
7373 } ) ) ;
You can’t perform that action at this time.
0 commit comments