Skip to content

Commit f343606

Browse files
committed
Nit
1 parent e3d8fc3 commit f343606

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/workspaceUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}));

0 commit comments

Comments
 (0)