@volar/language-service 2.3.0-alpha.2 → 2.3.0-alpha.3

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.
@@ -39,7 +39,7 @@ function register(context) {
39
39
  if (data && data.version !== document.version) {
40
40
  return false;
41
41
  }
42
- return data?.serviceIndex === pluginIndex;
42
+ return data?.pluginIndex === pluginIndex;
43
43
  }).map(diagnostic => {
44
44
  const data = diagnostic.data;
45
45
  return {
@@ -12,6 +12,6 @@ export interface ServiceReferencesCodeLensData {
12
12
  sourceFileUri: string;
13
13
  workerFileUri: string;
14
14
  workerFileRange: vscode.Range;
15
- serviceIndex: number;
15
+ pluginIndex: number;
16
16
  }
17
17
  export declare function register(context: LanguageServiceContext): (uri: URI, token?: vscode.CancellationToken) => Promise<vscode.CodeLens[]>;
@@ -31,7 +31,7 @@ function register(context) {
31
31
  sourceFileUri: uri.toString(),
32
32
  workerFileUri: document.uri,
33
33
  workerFileRange: range,
34
- serviceIndex: pluginIndex,
34
+ pluginIndex: pluginIndex,
35
35
  },
36
36
  }));
37
37
  codeLens = [
@@ -10,7 +10,7 @@ export interface ServiceDiagnosticData {
10
10
  version: number;
11
11
  original: Pick<vscode.Diagnostic, 'data'>;
12
12
  isFormat: boolean;
13
- serviceIndex: number;
13
+ pluginIndex: number;
14
14
  documentUri: string;
15
15
  }
16
16
  export declare const errorMarkups: Map<URI, {
@@ -162,7 +162,7 @@ function register(context) {
162
162
  error.data = {
163
163
  uri: uri.toString(),
164
164
  version: document.version,
165
- serviceIndex: pluginIndex,
165
+ pluginIndex: pluginIndex,
166
166
  isFormat: false,
167
167
  original: {
168
168
  data: error.data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-service",
3
- "version": "2.3.0-alpha.2",
3
+ "version": "2.3.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,10 +12,10 @@
12
12
  "directory": "packages/language-service"
13
13
  },
14
14
  "dependencies": {
15
- "@volar/language-core": "2.3.0-alpha.2",
15
+ "@volar/language-core": "2.3.0-alpha.3",
16
16
  "vscode-languageserver-protocol": "^3.17.5",
17
17
  "vscode-languageserver-textdocument": "^1.0.11",
18
18
  "vscode-uri": "^3.0.8"
19
19
  },
20
- "gitHead": "25e56612551d56037f4064c599532b4c7c185118"
20
+ "gitHead": "d322a122012dc339a3ac5139220e91649d508522"
21
21
  }