Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: debug language server #1811

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/packages/schema/bundle/**/*.js"]
"outFiles": ["${workspaceFolder}/packages/schema/dist/**/*.js"]
}
]
}
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"bin": {
"zenstack": "bin/cli"
},
"main": "./bundle/extension.js",
"main": "./dist/extension.js",
"scripts": {
"vscode:publish": "vsce publish --no-dependencies",
"vscode:prerelease": "vsce publish --no-dependencies --pre-release",
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function deactivate(): Thenable<void> | undefined {
}

function startLanguageClient(context: vscode.ExtensionContext): LanguageClient {
const serverModule = context.asAbsolutePath(path.join('bundle', 'language-server', 'main'));
const serverModule = context.asAbsolutePath(path.join('dist', 'language-server', 'main'));
// The debug options for the server
// --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging.
// By setting `process.env.DEBUG_BREAK` to a truthy value, the language server will wait until a debugger is attached.
Expand Down
4 changes: 2 additions & 2 deletions packages/schema/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["src/extension.ts"]
"include": ["src/**/*.ts"]
// "exclude": ["src/extension.ts"]
}
Loading