Skip to content

Commit a09c151

Browse files
committed
chore: debug language server
1 parent 28b130f commit a09c151

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"request": "attach",
2828
"skipFiles": ["<node_internals>/**"],
2929
"sourceMaps": true,
30-
"outFiles": ["${workspaceFolder}/packages/schema/bundle/**/*.js"]
30+
"outFiles": ["${workspaceFolder}/packages/schema/dist/**/*.js"]
3131
}
3232
]
3333
}

packages/schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"bin": {
7575
"zenstack": "bin/cli"
7676
},
77-
"main": "./bundle/extension.js",
77+
"main": "./dist/extension.js",
7878
"scripts": {
7979
"vscode:publish": "vsce publish --no-dependencies",
8080
"vscode:prerelease": "vsce publish --no-dependencies --pre-release",

packages/schema/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function deactivate(): Thenable<void> | undefined {
1818
}
1919

2020
function startLanguageClient(context: vscode.ExtensionContext): LanguageClient {
21-
const serverModule = context.asAbsolutePath(path.join('bundle', 'language-server', 'main'));
21+
const serverModule = context.asAbsolutePath(path.join('dist', 'language-server', 'main'));
2222
// The debug options for the server
2323
// --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging.
2424
// By setting `process.env.DEBUG_BREAK` to a truthy value, the language server will wait until a debugger is attached.

packages/schema/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"compilerOptions": {
44
"outDir": "dist"
55
},
6-
"include": ["src/**/*.ts"],
7-
"exclude": ["src/extension.ts"]
6+
"include": ["src/**/*.ts"]
7+
// "exclude": ["src/extension.ts"]
88
}

0 commit comments

Comments
 (0)