File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,15 @@ export default () => {
2323}
2424
2525const 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}
You can’t perform that action at this time.
0 commit comments