We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140670c commit e819f36Copy full SHA for e819f36
Extension/src/LanguageServer/configurations.ts
@@ -264,7 +264,7 @@ export class CppProperties {
264
Object.assign(result, this.configurationJson.env);
265
}
266
267
- result["workspaceFolderBasename"] = path.basename(this.rootUri.fsPath);
+ result["workspaceFolderBasename"] = this.rootUri ? path.basename(this.rootUri.fsPath) : "";
268
return result;
269
270
0 commit comments