Skip to content

Commit

Permalink
Fix .editorConfig setting precedence (#13140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Jan 10, 2025
1 parent 941aa60 commit fed7a82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,8 @@ export class DefaultClient implements Client {
void vscode.window.showErrorMessage(localize("unable.to.start", "Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: {0}", additionalInfo));
}
}

this.updateActiveDocumentTextOptions();
}

private async init(rootUri: vscode.Uri | undefined, isFirstClient: boolean) {
Expand Down
4 changes: 2 additions & 2 deletions Extension/src/LanguageServer/editorConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ function getEditorConfig(filePath: string): any {
Object.keys(configData).forEach((section: string) => {
if (section !== '*' && matchesSection(currentDirForwardSlashes, filePath, section)) {
combinedConfig = {
...combinedConfig,
...configData[section]
...configData[section],
...combinedConfig
};
}
});
Expand Down

0 comments on commit fed7a82

Please sign in to comment.