Skip to content

Commit f465766

Browse files
authored
Undo tab size change (#3568)
1 parent 7f4fc33 commit f465766

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Extension/src/LanguageServer/configurations.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,7 @@ export class CppProperties {
731731
let savedKnownCompilers: KnownCompiler[] = this.configurationJson.configurations[0].knownCompilers;
732732
delete this.configurationJson.configurations[0].knownCompilers;
733733

734-
let otherSettings: OtherSettings = new OtherSettings(this.rootUri);
735-
await util.writeFileText(fullPathToFile, JSON.stringify(this.configurationJson, null, otherSettings.editorTabSize));
734+
await util.writeFileText(fullPathToFile, JSON.stringify(this.configurationJson, null, 4));
736735
this.configurationJson.configurations[0].knownCompilers = savedKnownCompilers;
737736

738737
this.propertiesFile = vscode.Uri.file(path.join(this.configFolder, "c_cpp_properties.json"));
@@ -1265,8 +1264,7 @@ export class CppProperties {
12651264

12661265
private writeToJson(): void {
12671266
console.assert(this.propertiesFile);
1268-
let otherSettings: OtherSettings = new OtherSettings(this.rootUri);
1269-
fs.writeFileSync(this.propertiesFile.fsPath, JSON.stringify(this.configurationJson, null, otherSettings.editorTabSize));
1267+
fs.writeFileSync(this.propertiesFile.fsPath, JSON.stringify(this.configurationJson, null, 4));
12701268
}
12711269

12721270
public checkCppProperties(): void {

0 commit comments

Comments
 (0)