@volar/vscode 2.0.0-alpha.12 → 2.0.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export * from 'vscode-languageclient';
11
11
  import type { BaseLanguageClient, Middleware } from 'vscode-languageclient';
12
12
  export declare const middleware: Middleware;
13
13
  export declare function parseServerCommand(command: vscode.Command): vscode.Command;
14
- export declare const currentLabsVersion = "2.0.0-alpha.9";
14
+ export declare const currentLabsVersion = "2.0.0-alpha.14";
15
15
  export declare function createLabsInfo(languageServerProtocol: typeof import('@volar/language-server/protocol')): {
16
16
  extensionExports: LabsInfo;
17
17
  addLanguageClient(languageClient: BaseLanguageClient): void;
package/index.js CHANGED
@@ -96,7 +96,7 @@ function parseServerCommand(command) {
96
96
  return command;
97
97
  }
98
98
  exports.parseServerCommand = parseServerCommand;
99
- exports.currentLabsVersion = '2.0.0-alpha.9';
99
+ exports.currentLabsVersion = '2.0.0-alpha.14';
100
100
  function createLabsInfo(languageServerProtocol) {
101
101
  const onDidAddLanguageClientEmitter = new vscode.EventEmitter();
102
102
  const extensionExports = {
@@ -39,8 +39,9 @@ function activate(selector, client) {
39
39
  range: client.code2ProtocolConverter.asRange(lastChange.range),
40
40
  },
41
41
  };
42
- if (isCancel())
42
+ if (isCancel()) {
43
43
  return;
44
+ }
44
45
  const result = await client.sendRequest(protocol_1.AutoInsertRequest.type, params);
45
46
  if (result !== undefined && result !== null) {
46
47
  if (typeof result === 'string') {
@@ -14,8 +14,9 @@ function activate(cmd, client) {
14
14
  }, async (_progress) => {
15
15
  if (!uri) {
16
16
  const editor = vscode.window.activeTextEditor;
17
- if (!editor)
17
+ if (!editor) {
18
18
  return;
19
+ }
19
20
  uri = editor.document.uri;
20
21
  }
21
22
  const response = await client.sendRequest(protocol_1.FindFileReferenceRequest.type, { textDocument: { uri: uri.toString() } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/vscode",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.14",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/vscode"
13
13
  },
14
14
  "dependencies": {
15
- "@volar/language-server": "2.0.0-alpha.12",
15
+ "@volar/language-server": "2.0.0-alpha.14",
16
16
  "path-browserify": "^1.0.1",
17
17
  "vscode-languageclient": "^9.0.1",
18
18
  "vscode-nls": "^5.2.0"
@@ -22,5 +22,5 @@
22
22
  "@types/path-browserify": "latest",
23
23
  "@types/vscode": "^1.82.0"
24
24
  },
25
- "gitHead": "1c15dd486f6e6174aa940c21f0ef45215ea2b854"
25
+ "gitHead": "83eb6a4a4475a3680f14fb3808e48ec4dbe62cc1"
26
26
  }