Skip to content

Commit fed7a82

Browse files
authored
Fix .editorConfig setting precedence (#13140)
1 parent 941aa60 commit fed7a82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: Extension/src/LanguageServer/client.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,8 @@ export class DefaultClient implements Client {
12851285
void vscode.window.showErrorMessage(localize("unable.to.start", "Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: {0}", additionalInfo));
12861286
}
12871287
}
1288+
1289+
this.updateActiveDocumentTextOptions();
12881290
}
12891291

12901292
private async init(rootUri: vscode.Uri | undefined, isFirstClient: boolean) {

Diff for: Extension/src/LanguageServer/editorConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ function getEditorConfig(filePath: string): any {
165165
Object.keys(configData).forEach((section: string) => {
166166
if (section !== '*' && matchesSection(currentDirForwardSlashes, filePath, section)) {
167167
combinedConfig = {
168-
...combinedConfig,
169-
...configData[section]
168+
...configData[section],
169+
...combinedConfig
170170
};
171171
}
172172
});

0 commit comments

Comments
 (0)