Skip to content

Commit efeaed3

Browse files
committed
debug: auto attach TS + easier way to start both
1 parent b89da4b commit efeaed3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.vscode/launch.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@
2323
"name": "Attach to TS Server",
2424
"type": "node",
2525
"request": "attach",
26-
"protocol": "inspector",
26+
"restart": true,
2727
"port": 9229,
2828
"sourceMaps": true,
2929
"outFiles": [
3030
"${workspaceFolder}/out/**/*.js"
3131
],
3232
}
33+
],
34+
"compounds": [
35+
{
36+
"name": "Extension + TS Plugin",
37+
"configurations": [
38+
"Launch Extension",
39+
"Attach to TS Server"
40+
]
41+
}
3342
]
3443
}

typescript/src/dummyLanguageService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// only for basic testing, as vscode is actually using server
2-
import ts from 'typescript/lib/tsserverlibrary'
32
import { nodeModules } from './utils'
43

54
export const createLanguageService = (files: Record<string, string>, { useLib = true }: { useLib?: boolean } = {}) => {

0 commit comments

Comments
 (0)