Browse Source

remove wrapper

VHDL Tool 1 month ago
parent
commit
82ff695b94
2 changed files with 4 additions and 15 deletions
  1. 4 4
      src/extension.ts
  2. 0 11
      vhdltool-wrapper.sh

+ 4 - 4
src/extension.ts

@@ -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

+ 0 - 11
vhdltool-wrapper.sh

@@ -1,11 +0,0 @@
1
-#!/bin/sh
2
-
3
-export WRAPPER_PATH=`which vhdl-tool`
4
-
5
-if [ "X" = "X$WRAPPER_PATH" ]; then
6
-  echo "Content-Length: 100\r\n\r"
7
-  echo '{"jsonrpc":"2.0","id":1,"error":{"code":-32099,"message":"Cannot find vhdl-tool executable in $PATH"}}'
8
-  exit 1
9
-fi
10
-
11
-vhdl-tool lsp