Skip to content

Commit c882d8c

Browse files
monkey-patch around importing private type
1 parent f90f045 commit c882d8c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

extension/lsp/lsp.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import * as vscode from 'vscode';
99
import * as vscodelc from 'vscode-languageclient/node';
1010
import { TransportKind } from 'vscode-languageclient/node';
1111

12-
import { InitializationOptions } from '../../lsp-proxy/src/types';
1312
import { MAXSDK } from '../sdk/sdk';
1413
import * as config from '../utils/config';
1514
import { DisposableContext } from '../utils/disposableContext';
@@ -19,6 +18,25 @@ import { MAXSDKManager } from '../sdk/sdkManager';
1918
import { TelemetryReporter } from '../telemetry';
2019
import { LSPRecorder } from './recorder';
2120

21+
/**
22+
* This type represents the initialization options send by the extension to the
23+
* proxy.
24+
*/
25+
export interface InitializationOptions {
26+
/**
27+
* The path to `mojo-lsp-server`.
28+
*/
29+
serverPath: string;
30+
/**
31+
* The arguments to use when invoking `mojo-lsp-server`.
32+
*/
33+
serverArgs: string[];
34+
/**
35+
* The environment to use when invoking `mojo-lsp-server`.
36+
*/
37+
serverEnv: { [env: string]: Optional<string> };
38+
}
39+
2240
/**
2341
* This class manages the LSP clients.
2442
*/

0 commit comments

Comments
 (0)