Skip to content

Commit eb6ae05

Browse files
committed
Fix the saving of a vscode settings file
1 parent af7cd86 commit eb6ae05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app/src/app/overmind/effects/vscode/initializers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import JSON from 'json5';
1+
import JSON5 from 'json5';
22
import codeSandboxTheme from '@codesandbox/common/lib/themes/codesandbox.json';
33
import codeSandboxBlackTheme from '@codesandbox/common/lib/themes/codesandbox-black';
44

@@ -53,7 +53,7 @@ export function initializeSettings() {
5353
// and applies them 100ms later. There is no check for cursor or anything else.
5454
// This doesn't happen in VSCode Live Share itself, because there they share the LSP between
5555
// multiple users. This way the request is not duplicated among multiple users.
56-
const settings = JSON.parse(
56+
const settings = JSON5.parse(
5757
fs.readFileSync('/vscode/settings.json').toString()
5858
);
5959
settings['javascript.autoClosingTags'] = false;

0 commit comments

Comments
 (0)