File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as vscode from 'vscode'
22import { watchExtensionSettings } from '@zardoy/vscode-utils/build/settings'
33import { extensionCtx , getExtensionSetting } from 'vscode-framework'
4+ import { join } from 'path-browserify'
45
56export default ( ) => {
67 const handler = ( ) => {
@@ -23,5 +24,9 @@ export default () => {
2324
2425const isConfigValueChanged = ( id : string ) => {
2526 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
2732}
You can’t perform that action at this time.
0 commit comments