Skip to content

Commit b8fa504

Browse files
committed
fix weird esbuild error
1 parent 994019e commit b8fa504

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/vueVolarSupport.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ export default () => {
2323
}
2424

2525
const isConfigValueChanged = (id: string) => {
26-
const config = vscode.workspace.getConfiguration('')
27-
const userValue = config.get<string>(id)
28-
if (userValue === config.inspect(id)!.defaultValue) return false
29-
// means that value was set by us programmatically, let's update it
30-
// eslint-disable-next-line @typescript-eslint/no-require-imports
31-
if (userValue?.startsWith(require('path').join(extensionCtx.extensionPath, '../..'))) return false
32-
return true
26+
if (process.env.PLATFORM !== 'web') {
27+
const config = vscode.workspace.getConfiguration('')
28+
const userValue = config.get<string>(id)
29+
if (userValue === config.inspect(id)!.defaultValue) return false
30+
// means that value was set by us programmatically, let's update it
31+
// eslint-disable-next-line @typescript-eslint/no-require-imports
32+
if (userValue?.startsWith(require('path').join(extensionCtx.extensionPath, '../..'))) return false
33+
return true
34+
}
35+
36+
return undefined
3337
}

0 commit comments

Comments
 (0)