2 Commits 6ba2cded27 ... 2fe4b2d18c

Author SHA1 Message Date
  VHDL Tool 2fe4b2d18c update for latest vscode 6 months ago
  VHDL Tool cfa65568be bump vscode dependency 1 year ago
4 changed files with 16 additions and 53 deletions
  1. 5 7
      package.json
  2. 11 2
      src/extension.ts
  3. 0 22
      test/extension.test.ts
  4. 0 22
      test/index.ts

+ 5 - 7
package.json

@@ -2,7 +2,7 @@
2 2
     "name": "vhdl-tool",
3 3
     "displayName": "VHDL Language Server",
4 4
     "description": "Language Server Protocol for VHDL via VHDL-Tool",
5
-    "version": "0.0.7",
5
+    "version": "0.0.8",
6 6
     "license": "MIT",
7 7
     "publisher": "vhdl-tool",
8 8
     "homepage": "https://www.vhdltool.com",
@@ -14,7 +14,7 @@
14 14
         "url": "https://git.vhdltool.com/vhdl-tool/vhdl-tool/issues"
15 15
     },
16 16
     "engines": {
17
-        "vscode": "^1.26.0"
17
+        "vscode": "^1.63.0"
18 18
     },
19 19
     "categories": [
20 20
         "Programming Languages",
@@ -26,16 +26,14 @@
26 26
     "main": "./out/src/extension",
27 27
     "scripts": {
28 28
         "vscode:prepublish": "tsc -p ./",
29
-        "compile": "tsc -watch -p ./",
30
-        "postinstall": "node ./node_modules/vscode/bin/install"
29
+        "compile": "tsc -watch -p ./"
31 30
     },
32 31
     "dependencies": {
33
-        "vscode-languageclient": "^6.1.3"
32
+        "vscode-languageclient": "^7.0.0"
34 33
     },
35 34
     "devDependencies": {
36 35
         "typescript": "^3.5.1",
37
-        "vscode": "^1.1.34",
38
-        "@types/mocha": "^5.2.0",
36
+        "@types/vscode": "^1.63.0",
39 37
         "@types/node": "^8.0.0"
40 38
     },
41 39
     "contributes": {

+ 11 - 2
src/extension.ts

@@ -1,8 +1,17 @@
1 1
 'use strict';
2 2
 
3 3
 import * as path from 'path';
4
-import { workspace, Disposable, ExtensionContext, window } from 'vscode';
5
-import { LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, TransportKind } from 'vscode-languageclient';
4
+import { 
5
+    ExtensionContext, 
6
+    window 
7
+} from 'vscode';
8
+import { 
9
+    LanguageClient, 
10
+    LanguageClientOptions, 
11
+    SettingMonitor, 
12
+    ServerOptions, 
13
+    TransportKind 
14
+} from 'vscode-languageclient/node';
6 15
 import * as child_process from 'child_process';
7 16
 import * as fs from 'fs';
8 17
 

+ 0 - 22
test/extension.test.ts

@@ -1,22 +0,0 @@
1
-//
2
-// Note: This example test is leveraging the Mocha test framework.
3
-// Please refer to their documentation on https://mochajs.org/ for help.
4
-//
5
-
6
-// The module 'assert' provides assertion methods from node
7
-import * as assert from 'assert';
8
-
9
-// You can import and use all API from the 'vscode' module
10
-// as well as import your extension to test it
11
-import * as vscode from 'vscode';
12
-import * as myExtension from '../src/extension';
13
-
14
-// Defines a Mocha test suite to group tests of similar kind together
15
-suite("Extension Tests", () => {
16
-
17
-    // Defines a Mocha unit test
18
-    test("Something 1", () => {
19
-        assert.equal(-1, [1, 2, 3].indexOf(5));
20
-        assert.equal(-1, [1, 2, 3].indexOf(0));
21
-    });
22
-});

+ 0 - 22
test/index.ts

@@ -1,22 +0,0 @@
1
-//
2
-// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
3
-//
4
-// This file is providing the test runner to use when running extension tests.
5
-// By default the test runner in use is Mocha based.
6
-//
7
-// You can provide your own test runner if you want to override it by exporting
8
-// a function run(testRoot: string, clb: (error:Error) => void) that the extension
9
-// host can call to run the tests. The test runner is expected to use console.log
10
-// to report the results back to the caller. When the tests are finished, return
11
-// a possible error to the callback or null if none.
12
-
13
-var testRunner = require('vscode/lib/testrunner');
14
-
15
-// You can directly control Mocha options by uncommenting the following lines
16
-// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
17
-testRunner.configure({
18
-    ui: 'tdd', 		// the TDD UI is being used in extension.test.ts (suite, test, etc.)
19
-    useColors: true // colored output from test results
20
-});
21
-
22
-module.exports = testRunner;