Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions packages/textlint/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
// ${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": [
{
"type": "npm",
"script": "tsc",
"label": "npm: tsc",
"type": "shell",
"command": "npm run tsc",
"group": "build",
"presentation": {
"panel": "dedicated",
Expand All @@ -20,8 +24,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",
Expand Down
3 changes: 2 additions & 1 deletion vscode-textlint.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down