Skip to content

Commit 35e0027

Browse files
grdownsbobbrow
authored andcommitted
Check whether propertiesFile is null before accessing (#1647)
Travis looks like it's stalled. I'm going to force this in so we can build an insiders package.
1 parent 70cff29 commit 35e0027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class CppProperties {
202202
config.cppStandard = this.defaultCppStandard;
203203
doUpdate = true;
204204
}
205-
if (doUpdate) {
205+
if (doUpdate && this.propertiesFile) {
206206
fs.writeFileSync(this.propertiesFile.fsPath, JSON.stringify(this.configurationJson, null, 4));
207207
}
208208

0 commit comments

Comments
 (0)