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 7b32ef4 commit f81a4c8Copy full SHA for f81a4c8
src/extension/settingsHelper.ts
@@ -9,6 +9,7 @@ import { Packager } from "../common/packager";
9
import { SystemColorTheme } from "../common/editorColorThemesHelper";
10
import { LogLevel } from "./log/LogHelper";
11
import { PackagerStatusIndicator } from "./packagerStatusIndicator";
12
+import { stripJsonTrailingComma } from "../../src/common/utils";
13
14
export class SettingsHelper {
15
/**
@@ -215,7 +216,7 @@ export class SettingsHelper {
215
216
return [];
217
}
218
// Get workspace settings
- const workspaceSettingsContent = JSON.parse(
219
+ const workspaceSettingsContent = stripJsonTrailingComma(
220
stripJsonComments(fs.readFileSync(settingsPath, "utf-8")),
221
);
222
if (workspaceSettingsContent) {
0 commit comments