local lsp
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<AssemblyName>nublsp</AssemblyName>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
|
import path from 'path';
|
||||||
import { workspace, ExtensionContext, window } from 'vscode';
|
import { workspace, ExtensionContext, window } from 'vscode';
|
||||||
import { LanguageClient, TransportKind } from 'vscode-languageclient/node';
|
import { LanguageClient, TransportKind } from 'vscode-languageclient/node';
|
||||||
|
|
||||||
let client: LanguageClient;
|
let client: LanguageClient;
|
||||||
|
|
||||||
export function activate(context: ExtensionContext) {
|
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(
|
client = new LanguageClient(
|
||||||
'nub',
|
'nub',
|
||||||
|
|||||||
BIN
vscode-lsp/src/server/nublsp
Executable file
BIN
vscode-lsp/src/server/nublsp
Executable file
Binary file not shown.
Reference in New Issue
Block a user