File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
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'
5
4
6
5
export default ( ) => {
6
+ if ( process . env . PLATFORM !== 'node' ) return
7
7
const handler = ( ) => {
8
8
const config = vscode . workspace . getConfiguration ( '' )
9
9
if (
@@ -27,6 +27,7 @@ const isConfigValueChanged = (id: string) => {
27
27
const userValue = config . get < string > ( id )
28
28
if ( userValue === config . inspect ( id ) ! . defaultValue ) return false
29
29
// means that value was set by us programmatically, let's update it
30
- if ( userValue ?. startsWith ( join ( extensionCtx . extensionPath , '..' ) ) ) return false
30
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
31
+ if ( userValue ?. startsWith ( require ( 'path' ) . join ( extensionCtx . extensionPath , '../..' ) ) ) return false
31
32
return true
32
33
}
You can’t perform that action at this time.
0 commit comments