|
@@ -6,13 +6,13 @@ import { LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, T
|
6
|
6
|
|
7
|
7
|
export function activate(context: ExtensionContext) {
|
8
|
8
|
|
9
|
|
- let serverPath = context.asAbsolutePath(path.join('.', 'vhdltool-wrapper.sh'));
|
10
|
|
-
|
|
9
|
+ let args: string[] = ['lsp'];
|
|
10
|
+
|
11
|
11
|
// If the extension is launched in debug mode then the debug server options are used
|
12
|
12
|
// Otherwise the run options are used
|
13
|
13
|
let serverOptions: ServerOptions = {
|
14
|
|
- run: { command: serverPath },
|
15
|
|
- debug: { command: serverPath }
|
|
14
|
+ run: { command: 'vhdl-tool', args},
|
|
15
|
+ debug: { command: 'vhdl-tool', args}
|
16
|
16
|
}
|
17
|
17
|
|
18
|
18
|
// Options to control the language client
|