Skip to content

Commit

Permalink
(chore) add debugger config for ts plugin (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyu123 committed May 29, 2022
1 parent 46a3dd8 commit fa5eb0f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .vscode/launch.json
Expand Up @@ -10,7 +10,10 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/packages/svelte-vscode/dist/**/*.js"],
"preLaunchTask": "npm: watch"
"preLaunchTask": "npm: watch",
"env": {
"TSS_DEBUG": "5859"
}
},
{
"type": "node",
Expand Down Expand Up @@ -52,6 +55,14 @@
"${workspaceRoot}/packages/svelte2tsx/index.js"
],
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "attach",
"name": "Attach debugger to typescript plugin",
"port": 5859,
"outFiles": ["${workspaceRoot}/packages/typescript-plugin/dist/**/*.js"],
"skipFiles": ["<node_internals>/**"]
}
]
}
1 change: 1 addition & 0 deletions packages/typescript-plugin/.npmignore
Expand Up @@ -4,3 +4,4 @@ tsconfig.json
.gitignore
internal.md
dist/tsconfig.tsbuildinfo
dist/**/*.map
2 changes: 1 addition & 1 deletion packages/typescript-plugin/tsconfig.json
Expand Up @@ -6,7 +6,7 @@
"strict": true,
"declaration": true,
"outDir": "dist",
"sourceMap": false,
"sourceMap": true,
"composite": true
},
"include": ["./src/**/*"],
Expand Down

0 comments on commit fa5eb0f

Please sign in to comment.