From 1a63f7ea1fde3cf29a6ab4a178ac45a67f4d94de Mon Sep 17 00:00:00 2001 From: nub31 Date: Thu, 23 Oct 2025 15:06:31 +0200 Subject: [PATCH] local lsp --- compiler/NubLang.LSP/NubLang.LSP.csproj | 3 +++ vscode-lsp/src/extension.ts | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/NubLang.LSP/NubLang.LSP.csproj b/compiler/NubLang.LSP/NubLang.LSP.csproj index 2f273b2..720f388 100644 --- a/compiler/NubLang.LSP/NubLang.LSP.csproj +++ b/compiler/NubLang.LSP/NubLang.LSP.csproj @@ -1,10 +1,13 @@  + nublsp Exe net9.0 enable enable + true + true diff --git a/vscode-lsp/src/extension.ts b/vscode-lsp/src/extension.ts index 58a4de7..f50c5ec 100644 --- a/vscode-lsp/src/extension.ts +++ b/vscode-lsp/src/extension.ts @@ -1,10 +1,11 @@ +import path from 'path'; import { workspace, ExtensionContext, window } from 'vscode'; import { LanguageClient, TransportKind } from 'vscode-languageclient/node'; let client: LanguageClient; export function activate(context: ExtensionContext) { - const serverExecutable = '/home/oliste/repos/nub-lang/compiler/NubLang.LSP/bin/Debug/net9.0/NubLang.LSP'; + const serverExecutable = path.join(context.asAbsolutePath('src/server'), "nublsp"); client = new LanguageClient( 'nub',