Skip to content

Commit

Permalink
Fix module location in extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotes committed Mar 12, 2024
1 parent bf03ff3 commit 788ef6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/langium-sql-vscode/src/browser/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function deactivate(): Thenable<void> | undefined {

function startLanguageClient(context: vscode.ExtensionContext): LanguageClient {

const serverMain = vscode.Uri.joinPath(context.extensionUri, 'dist/browser/language-server.js');
const serverMain = vscode.Uri.joinPath(context.extensionUri, 'dist/browser/language-server.cjs');

const worker = new Worker(serverMain.toString());

Expand Down
2 changes: 1 addition & 1 deletion packages/langium-sql-vscode/src/node/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function deactivate(): Thenable<void> | undefined {

function startLanguageClient(context: vscode.ExtensionContext): LanguageClient {
const serverModule = context.asAbsolutePath(
path.join("dist", "node", "language-server")
path.join("dist", "node", "language-server.cjs")
);
// 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.
Expand Down

0 comments on commit 788ef6e

Please sign in to comment.