Skip to content

Commit

Permalink
Attempt to fix c_cpp_properties resetting. (#5368)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus authored Apr 28, 2020
1 parent c9f46cc commit 118bed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ export class CppProperties {
let propertiesFile: string = path.join(this.configFolder, "c_cpp_properties.json");
fs.stat(propertiesFile, (err, stats) => {
if (err) {
if (this.propertiesFile) {
if (err.code === "ENOENT" && this.propertiesFile) {
this.propertiesFile = null; // File deleted.
this.resetToDefaultSettings(true);
this.handleConfigurationChange();
Expand Down

0 comments on commit 118bed1

Please sign in to comment.