Skip to content

Commit e473f24

Browse files
committed
Fix parsing vscode settings
1 parent 92c2c82 commit e473f24

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/app/src/app/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ const debug = _debug('cs:app');
4242
*/
4343
const warn = console.warn;
4444
console.warn = (...args) => {
45-
if (args[0].includes('Cannot update plugins')) {
45+
if (
46+
args &&
47+
args[0] &&
48+
typeof args[0].includes === 'function' &&
49+
args[0].includes('Cannot update plugins')
50+
) {
4651
return;
4752
}
4853

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import JSON from 'json5';
12
import codeSandboxTheme from '@codesandbox/common/lib/themes/codesandbox.json';
23
import codeSandboxBlackTheme from '@codesandbox/common/lib/themes/codesandbox-black';
34

0 commit comments

Comments
 (0)