Skip to content

Commit c773625

Browse files
committed
update to latest vscode-languageclient
- adds support for multiple things in the LSP, including inlay hints - also: change the API we use to launch the language server as vscode will now supply --stdio by default
1 parent 78aa0eb commit c773625

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

package-lock.json

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vala",
33
"displayName": "Vala",
44
"description": "Syntax highlighting and language support for the Vala / Genie languages",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"publisher": "prince781",
77
"author": {
88
"name": "Princeton Ferro",
@@ -112,7 +112,7 @@
112112
}
113113
},
114114
"dependencies": {
115-
"vscode-languageclient": "^7.1.0-next.1",
115+
"vscode-languageclient": "8.0.0-next.14",
116116
"which": "^2.0.2"
117117
},
118118
"devDependencies": {

src/client.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
LanguageClientOptions,
66
RevealOutputChannelOn,
77
ServerOptions,
8-
TransportKind
8+
Executable
99
} from 'vscode-languageclient/node';
1010

1111
import {
@@ -50,25 +50,25 @@ export class ValaLanguageClient {
5050
if (this.config.failOnCriticals)
5151
runEnvironment['G_DEBUG'] = 'fatal-criticals';
5252

53-
let serverOptions: ServerOptions = {
54-
run: {
55-
command: serverModule,
56-
transport: TransportKind.stdio,
57-
options: {
58-
env: runEnvironment
53+
let runExe: Executable = {
54+
command: serverModule,
55+
options: {
56+
env: runEnvironment
57+
}
58+
};
59+
let debugExe: Executable = {
60+
command: serverModule,
61+
options: {
62+
env: {
63+
...process.env,
64+
G_MESSAGES_DEBUG: 'all'
5965
}
60-
},
61-
debug: {
62-
command: serverModule,
63-
options: {
64-
env: {
65-
...process.env,
66-
G_MESSAGES_DEBUG: 'all'
67-
}
68-
},
69-
transport: TransportKind.stdio
7066
}
7167
};
68+
let serverOptions: ServerOptions = {
69+
run: runExe,
70+
debug: debugExe
71+
};
7272

7373
this.ls = new LanguageClient('Vala Language Server', serverOptions, clientOptions);
7474

0 commit comments

Comments
 (0)