Skip to content

Commit 7a4de92

Browse files
author
Kartik Raj
authored
Use WorkspaceFolder.name in addition to workspace folder's basename when resolving ${workspaceFolder:name} syntax in settings (#22471)
Closes #22452
1 parent fbfa126 commit 7a4de92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/common/variables/systemVariables.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ export class SystemVariables extends AbstractSystemVariables {
132132
const basename = Path.basename(folder.uri.fsPath);
133133
((this as any) as Record<string, string | undefined>)[`workspaceFolder:${basename}`] =
134134
folder.uri.fsPath;
135+
((this as any) as Record<string, string | undefined>)[`workspaceFolder:${folder.name}`] =
136+
folder.uri.fsPath;
135137
});
136138
} catch {
137139
// This try...catch block is here to support pre-existing tests, ignore error.

0 commit comments

Comments
 (0)