local lsp

This commit is contained in:
nub31
2025-10-23 15:06:31 +02:00
parent f3fb6bba25
commit c591d99a7c
3 changed files with 5 additions and 1 deletions

View File

@@ -1,10 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>nublsp</AssemblyName>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>
<ItemGroup>

View File

@@ -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',

BIN
vscode-lsp/src/server/nublsp Executable file

Binary file not shown.