Skip to content

Commit

Permalink
Use WorkspaceFolder.name in addition to workspace folder's basename…
Browse files Browse the repository at this point in the history
… when resolving `${workspaceFolder:name}` syntax in settings (#22471)

Closes #22452
  • Loading branch information
Kartik Raj committed Nov 13, 2023
1 parent fbfa126 commit 7a4de92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/common/variables/systemVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export class SystemVariables extends AbstractSystemVariables {
const basename = Path.basename(folder.uri.fsPath);
((this as any) as Record<string, string | undefined>)[`workspaceFolder:${basename}`] =
folder.uri.fsPath;
((this as any) as Record<string, string | undefined>)[`workspaceFolder:${folder.name}`] =
folder.uri.fsPath;
});
} catch {
// This try...catch block is here to support pre-existing tests, ignore error.
Expand Down

0 comments on commit 7a4de92

Please sign in to comment.