diff --git a/package.json b/package.json index 99f0a16..a8cefd7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "switch2idea", "displayName": "Switch2IDEA", "description": "Quickly switch between VS Code and IntelliJ IDEA, open current file in IDEA with the same position", - "version": "1.0.3", + "version": "1.0.3-1", "publisher": "qczone", "license": "MIT", "repository": { @@ -58,7 +58,8 @@ "switch2idea.ideaPath": { "type": "string", "default": "", - "description": "IDEA executable path" + "description": "IDEA executable path", + "scope": "resource" } } }, diff --git a/src/extension.ts b/src/extension.ts index 99734a2..2cae7e3 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -84,7 +84,7 @@ export function activate(context: vscode.ExtensionContext) { column = editor.selection.active.character; } - const config = vscode.workspace.getConfiguration('switch2idea'); + const config = vscode.workspace.getConfiguration('switch2idea', uri); let ideaPath = config.get('ideaPath'); if (!ideaPath) {