File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import * as vscode from 'vscode'
2
2
import { watchExtensionSettings } from '@zardoy/vscode-utils/build/settings'
3
3
import { extensionCtx , getExtensionSetting } from 'vscode-framework'
4
+ import { join } from 'path-browserify'
4
5
5
6
export default ( ) => {
6
7
const handler = ( ) => {
@@ -23,5 +24,9 @@ export default () => {
23
24
24
25
const isConfigValueChanged = ( id : string ) => {
25
26
const config = vscode . workspace . getConfiguration ( '' )
26
- return config . get ( id ) !== config . inspect ( id ) ! . defaultValue
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
+ if ( userValue ?. startsWith ( join ( extensionCtx . extensionPath , '..' ) ) ) return false
31
+ return true
27
32
}
You can’t perform that action at this time.
0 commit comments