Skip to content

Commit 70944b6

Browse files
authored
Fix workspace folder settings being incorrect. (#5135)
1 parent 0c9e000 commit 70944b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Extension/src/LanguageServer/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,13 +1072,14 @@ export class DefaultClient implements Client {
10721072
let settings: CppSettings[] = [];
10731073
let otherSettings: OtherSettings[] = [];
10741074

1075-
settings.push(workspaceSettings);
1076-
otherSettings.push(workspaceOtherSettings);
10771075
if (vscode.workspace.workspaceFolders) {
10781076
for (let workspaceFolder of vscode.workspace.workspaceFolders) {
10791077
settings.push(new CppSettings(workspaceFolder.uri));
10801078
otherSettings.push(new OtherSettings(workspaceFolder.uri));
10811079
}
1080+
} else {
1081+
settings.push(workspaceSettings);
1082+
otherSettings.push(workspaceOtherSettings);
10821083
}
10831084

10841085
for (let setting of settings) {

0 commit comments

Comments
 (0)