File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,18 @@ import {
1515 WorkspaceFolder ,
1616} from "vscode" ;
1717import {
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" ;
2730import * as Package from "./elmPackage" ;
2831import * as RefactorAction from "./refactorAction" ;
2932import * 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" ,
You can’t perform that action at this time.
0 commit comments