Skip to content

Commit a420bc0

Browse files
committed
Update language client
1 parent ed810da commit a420bc0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

client/src/extension.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ import {
1515
WorkspaceFolder,
1616
} from "vscode";
1717
import {
18-
LanguageClient,
1918
LanguageClientOptions,
2019
Middleware,
2120
ResolveCodeLensSignature,
2221
RevealOutputChannelOn,
23-
TransportKind,
2422
ProvideCodeLensesSignature,
2523
DidChangeConfigurationNotification,
2624
} from "vscode-languageclient";
25+
import {
26+
LanguageClient,
27+
ServerOptions,
28+
TransportKind,
29+
} from "vscode-languageclient/node";
2730
import * as Package from "./elmPackage";
2831
import * as RefactorAction from "./refactorAction";
2932
import * as ExposeUnexposeAction from "./exposeUnexposeAction";
@@ -114,13 +117,16 @@ export function activate(context: ExtensionContext): void {
114117
const debugOptions = {
115118
execArgv: ["--nolazy", `--inspect=${6010 + clients.size}`],
116119
};
117-
const serverOptions = {
120+
const serverOptions: ServerOptions = {
118121
debug: {
119122
module,
120123
options: debugOptions,
121124
transport: TransportKind.ipc,
122125
},
123-
run: { module, transport: TransportKind.ipc },
126+
run: {
127+
module,
128+
transport: TransportKind.ipc,
129+
},
124130
};
125131
const clientOptions: LanguageClientOptions = {
126132
diagnosticCollectionName: "Elm",

0 commit comments

Comments
 (0)