From ad3bdf2ea2793f01cf0463ac52a1af2bdf6c1689 Mon Sep 17 00:00:00 2001 From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> Date: Mon, 20 Oct 2025 07:02:18 +0900 Subject: [PATCH 1/2] chore: update launch config to run extension with correct command and path --- packages/textlint/.vscode/tasks.json | 10 ++++++---- vscode-textlint.code-workspace | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/textlint/.vscode/tasks.json b/packages/textlint/.vscode/tasks.json index 34395cf..92db752 100644 --- a/packages/textlint/.vscode/tasks.json +++ b/packages/textlint/.vscode/tasks.json @@ -10,8 +10,9 @@ "version": "2.0.0", "tasks": [ { - "type": "npm", - "script": "tsc", + "label": "npm: tsc", + "type": "shell", + "command": "npm run tsc", "group": "build", "presentation": { "panel": "dedicated", @@ -20,8 +21,9 @@ "problemMatcher": ["$tsc", "$ts-webpack"] }, { - "type": "npm", - "script": "watch", + "label": "npm: watch", + "type": "shell", + "command": "npm --prefix ${workspaceFolder}/../../ run watch", "isBackground": true, "group": { "kind": "build", diff --git a/vscode-textlint.code-workspace b/vscode-textlint.code-workspace index 335a36e..dd8e74b 100644 --- a/vscode-textlint.code-workspace +++ b/vscode-textlint.code-workspace @@ -37,7 +37,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true }, - "typescript.tsdk": "./node_modules/typescript/lib" + "typescript.tsdk": "./node_modules/typescript/lib", + "npm.packageManager": "npm" }, "extensions": { "recommendations": [ From d9c78b64dfefdba84a5d69b995f708be55a8b063 Mon Sep 17 00:00:00 2001 From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> Date: Mon, 20 Oct 2025 07:35:37 +0900 Subject: [PATCH 2/2] chore: add note to tasks --- packages/textlint/.vscode/tasks.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/textlint/.vscode/tasks.json b/packages/textlint/.vscode/tasks.json index 92db752..c3085cd 100644 --- a/packages/textlint/.vscode/tasks.json +++ b/packages/textlint/.vscode/tasks.json @@ -6,6 +6,9 @@ // ${fileExtname}: the current opened file's extension // ${cwd}: the current working directory of the spawned process // A task runner that calls a custom npm script that compiles the extension. + +// NOTE: We do not use `"type": "npm"` because VS Code may incorrectly choose the package manager. +// cf. https://github.com/microsoft/vscode/issues/170101 { "version": "2.0.0", "tasks": [