@volar/language-server 2.4.13 → 2.4.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.
Files changed (3) hide show
  1. package/package.json +5 -5
  2. package/protocol.d.ts +23 -23
  3. package/protocol.js +15 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-server",
3
- "version": "2.4.13",
3
+ "version": "2.4.14",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,9 +12,9 @@
12
12
  "directory": "packages/language-server"
13
13
  },
14
14
  "dependencies": {
15
- "@volar/language-core": "2.4.13",
16
- "@volar/language-service": "2.4.13",
17
- "@volar/typescript": "2.4.13",
15
+ "@volar/language-core": "2.4.14",
16
+ "@volar/language-service": "2.4.14",
17
+ "@volar/typescript": "2.4.14",
18
18
  "path-browserify": "^1.0.1",
19
19
  "request-light": "^0.7.0",
20
20
  "vscode-languageserver": "^9.0.1",
@@ -25,5 +25,5 @@
25
25
  "devDependencies": {
26
26
  "@types/path-browserify": "latest"
27
27
  },
28
- "gitHead": "c5d727b9e73d0c6a45c64b38d74ca5c52363818f"
28
+ "gitHead": "e8280897a7bc0e0366f657b6aefd4230ad5ee027"
29
29
  }
package/protocol.d.ts CHANGED
@@ -1,30 +1,30 @@
1
1
  import type { CodeMapping } from '@volar/language-core';
2
2
  import type { DocumentDropEdit } from '@volar/language-service';
3
- import * as vscode from 'vscode-languageserver-protocol';
3
+ import * as protocol from 'vscode-languageserver-protocol';
4
4
  export * from 'vscode-languageserver-protocol';
5
5
  /**
6
6
  * Client request server
7
7
  */
8
8
  export declare namespace FindFileReferenceRequest {
9
9
  type ParamsType = {
10
- textDocument: vscode.TextDocumentIdentifier;
10
+ textDocument: protocol.TextDocumentIdentifier;
11
11
  };
12
- type ResponseType = vscode.Location[] | null | undefined;
12
+ type ResponseType = protocol.Location[] | null | undefined;
13
13
  type ErrorType = never;
14
- const type: vscode.RequestType<ParamsType, ResponseType, never>;
14
+ const type: protocol.RequestType<ParamsType, ResponseType, never>;
15
15
  }
16
16
  export declare namespace GetMatchTsConfigRequest {
17
- type ParamsType = vscode.TextDocumentIdentifier;
17
+ type ParamsType = protocol.TextDocumentIdentifier;
18
18
  type ResponseType = {
19
19
  uri: string;
20
20
  } | null | undefined;
21
21
  type ErrorType = never;
22
- const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
22
+ const type: protocol.RequestType<protocol.TextDocumentIdentifier, ResponseType, never>;
23
23
  }
24
24
  export declare namespace AutoInsertRequest {
25
25
  type ParamsType = {
26
- textDocument: vscode.TextDocumentIdentifier;
27
- selection: vscode.Position;
26
+ textDocument: protocol.TextDocumentIdentifier;
27
+ selection: protocol.Position;
28
28
  change: {
29
29
  rangeOffset: number;
30
30
  rangeLength: number;
@@ -33,19 +33,19 @@ export declare namespace AutoInsertRequest {
33
33
  };
34
34
  type ResponseType = string | null | undefined;
35
35
  type ErrorType = never;
36
- const type: vscode.RequestType<ParamsType, ResponseType, never>;
36
+ const type: protocol.RequestType<ParamsType, ResponseType, never>;
37
37
  }
38
38
  export declare namespace WriteVirtualFilesNotification {
39
- const type: vscode.NotificationType<vscode.TextDocumentIdentifier>;
39
+ const type: protocol.NotificationType<protocol.TextDocumentIdentifier>;
40
40
  }
41
41
  export declare namespace ReloadProjectNotification {
42
- const type: vscode.NotificationType<vscode.TextDocumentIdentifier>;
42
+ const type: protocol.NotificationType<protocol.TextDocumentIdentifier>;
43
43
  }
44
44
  /**
45
45
  * Document Drop
46
46
  */
47
47
  export declare namespace DocumentDropRequest {
48
- type ParamsType = vscode.TextDocumentPositionParams & {
48
+ type ParamsType = protocol.TextDocumentPositionParams & {
49
49
  dataTransfer: {
50
50
  mimeType: string;
51
51
  value: any;
@@ -57,7 +57,7 @@ export declare namespace DocumentDropRequest {
57
57
  };
58
58
  type ResponseType = DocumentDropEdit | null | undefined;
59
59
  type ErrorType = never;
60
- const type: vscode.RequestType<ParamsType, ResponseType, never>;
60
+ const type: protocol.RequestType<ParamsType, ResponseType, never>;
61
61
  }
62
62
  export declare namespace DocumentDrop_DataTransferItemAsStringRequest {
63
63
  type ParamsType = {
@@ -65,7 +65,7 @@ export declare namespace DocumentDrop_DataTransferItemAsStringRequest {
65
65
  };
66
66
  type ResponseType = string;
67
67
  type ErrorType = never;
68
- const type: vscode.RequestType<ParamsType, string, never>;
68
+ const type: protocol.RequestType<ParamsType, string, never>;
69
69
  }
70
70
  export declare namespace DocumentDrop_DataTransferItemFileDataRequest {
71
71
  type ParamsType = {
@@ -73,7 +73,7 @@ export declare namespace DocumentDrop_DataTransferItemFileDataRequest {
73
73
  };
74
74
  type ResponseType = Uint8Array;
75
75
  type ErrorType = never;
76
- const type: vscode.RequestType<ParamsType, ResponseType, never>;
76
+ const type: protocol.RequestType<ParamsType, ResponseType, never>;
77
77
  }
78
78
  /**
79
79
  * Labs
@@ -84,7 +84,7 @@ export declare namespace UpdateVirtualCodeStateNotification {
84
84
  virtualCodeId: string;
85
85
  disabled: boolean;
86
86
  };
87
- const type: vscode.NotificationType<ParamsType>;
87
+ const type: protocol.NotificationType<ParamsType>;
88
88
  }
89
89
  export declare namespace UpdateServicePluginStateNotification {
90
90
  type ParamsType = {
@@ -92,10 +92,10 @@ export declare namespace UpdateServicePluginStateNotification {
92
92
  serviceId: number;
93
93
  disabled: boolean;
94
94
  };
95
- const type: vscode.NotificationType<ParamsType>;
95
+ const type: protocol.NotificationType<ParamsType>;
96
96
  }
97
97
  export declare namespace GetServicePluginsRequest {
98
- type ParamsType = vscode.TextDocumentIdentifier;
98
+ type ParamsType = protocol.TextDocumentIdentifier;
99
99
  type ResponseType = {
100
100
  id: number;
101
101
  name?: string;
@@ -103,7 +103,7 @@ export declare namespace GetServicePluginsRequest {
103
103
  disabled: boolean;
104
104
  }[] | null | undefined;
105
105
  type ErrorType = never;
106
- const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
106
+ const type: protocol.RequestType<protocol.TextDocumentIdentifier, ResponseType, never>;
107
107
  }
108
108
  export declare namespace GetVirtualFileRequest {
109
109
  type VirtualCodeInfo = {
@@ -114,10 +114,10 @@ export declare namespace GetVirtualFileRequest {
114
114
  disabled: boolean;
115
115
  embeddedCodes: VirtualCodeInfo[];
116
116
  };
117
- type ParamsType = vscode.TextDocumentIdentifier;
117
+ type ParamsType = protocol.TextDocumentIdentifier;
118
118
  type ResponseType = VirtualCodeInfo | null | undefined;
119
119
  type ErrorType = never;
120
- const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
120
+ const type: protocol.RequestType<protocol.TextDocumentIdentifier, ResponseType, never>;
121
121
  }
122
122
  export declare namespace GetVirtualCodeRequest {
123
123
  type ParamsType = {
@@ -129,8 +129,8 @@ export declare namespace GetVirtualCodeRequest {
129
129
  mappings: Record<string, CodeMapping[]>;
130
130
  };
131
131
  type ErrorType = never;
132
- const type: vscode.RequestType<ParamsType, ResponseType, never>;
132
+ const type: protocol.RequestType<ParamsType, ResponseType, never>;
133
133
  }
134
134
  export declare namespace LoadedTSFilesMetaRequest {
135
- const type: vscode.RequestType0<unknown, unknown>;
135
+ const type: protocol.RequestType0<unknown, unknown>;
136
136
  }
package/protocol.js CHANGED
@@ -15,71 +15,71 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.LoadedTSFilesMetaRequest = exports.GetVirtualCodeRequest = exports.GetVirtualFileRequest = exports.GetServicePluginsRequest = exports.UpdateServicePluginStateNotification = exports.UpdateVirtualCodeStateNotification = exports.DocumentDrop_DataTransferItemFileDataRequest = exports.DocumentDrop_DataTransferItemAsStringRequest = exports.DocumentDropRequest = exports.ReloadProjectNotification = exports.WriteVirtualFilesNotification = exports.AutoInsertRequest = exports.GetMatchTsConfigRequest = exports.FindFileReferenceRequest = void 0;
18
- const vscode = require("vscode-languageserver-protocol");
18
+ const protocol = require("vscode-languageserver-protocol");
19
19
  __exportStar(require("vscode-languageserver-protocol"), exports);
20
20
  /**
21
21
  * Client request server
22
22
  */
23
23
  var FindFileReferenceRequest;
24
24
  (function (FindFileReferenceRequest) {
25
- FindFileReferenceRequest.type = new vscode.RequestType('volar/client/findFileReference');
25
+ FindFileReferenceRequest.type = new protocol.RequestType('volar/client/findFileReference');
26
26
  })(FindFileReferenceRequest || (exports.FindFileReferenceRequest = FindFileReferenceRequest = {}));
27
27
  var GetMatchTsConfigRequest;
28
28
  (function (GetMatchTsConfigRequest) {
29
- GetMatchTsConfigRequest.type = new vscode.RequestType('volar/client/tsconfig');
29
+ GetMatchTsConfigRequest.type = new protocol.RequestType('volar/client/tsconfig');
30
30
  })(GetMatchTsConfigRequest || (exports.GetMatchTsConfigRequest = GetMatchTsConfigRequest = {}));
31
31
  var AutoInsertRequest;
32
32
  (function (AutoInsertRequest) {
33
- AutoInsertRequest.type = new vscode.RequestType('volar/client/autoInsert');
33
+ AutoInsertRequest.type = new protocol.RequestType('volar/client/autoInsert');
34
34
  })(AutoInsertRequest || (exports.AutoInsertRequest = AutoInsertRequest = {}));
35
35
  var WriteVirtualFilesNotification;
36
36
  (function (WriteVirtualFilesNotification) {
37
- WriteVirtualFilesNotification.type = new vscode.NotificationType('volar/client/writeVirtualFiles');
37
+ WriteVirtualFilesNotification.type = new protocol.NotificationType('volar/client/writeVirtualFiles');
38
38
  })(WriteVirtualFilesNotification || (exports.WriteVirtualFilesNotification = WriteVirtualFilesNotification = {}));
39
39
  var ReloadProjectNotification;
40
40
  (function (ReloadProjectNotification) {
41
- ReloadProjectNotification.type = new vscode.NotificationType('volar/client/reloadProject');
41
+ ReloadProjectNotification.type = new protocol.NotificationType('volar/client/reloadProject');
42
42
  })(ReloadProjectNotification || (exports.ReloadProjectNotification = ReloadProjectNotification = {}));
43
43
  /**
44
44
  * Document Drop
45
45
  */
46
46
  var DocumentDropRequest;
47
47
  (function (DocumentDropRequest) {
48
- DocumentDropRequest.type = new vscode.RequestType('volar/client/documentDrop');
48
+ DocumentDropRequest.type = new protocol.RequestType('volar/client/documentDrop');
49
49
  })(DocumentDropRequest || (exports.DocumentDropRequest = DocumentDropRequest = {}));
50
50
  var DocumentDrop_DataTransferItemAsStringRequest;
51
51
  (function (DocumentDrop_DataTransferItemAsStringRequest) {
52
- DocumentDrop_DataTransferItemAsStringRequest.type = new vscode.RequestType('volar/client/documentDrop/asString');
52
+ DocumentDrop_DataTransferItemAsStringRequest.type = new protocol.RequestType('volar/client/documentDrop/asString');
53
53
  })(DocumentDrop_DataTransferItemAsStringRequest || (exports.DocumentDrop_DataTransferItemAsStringRequest = DocumentDrop_DataTransferItemAsStringRequest = {}));
54
54
  var DocumentDrop_DataTransferItemFileDataRequest;
55
55
  (function (DocumentDrop_DataTransferItemFileDataRequest) {
56
- DocumentDrop_DataTransferItemFileDataRequest.type = new vscode.RequestType('volar/client/documentDrop/fileData');
56
+ DocumentDrop_DataTransferItemFileDataRequest.type = new protocol.RequestType('volar/client/documentDrop/fileData');
57
57
  })(DocumentDrop_DataTransferItemFileDataRequest || (exports.DocumentDrop_DataTransferItemFileDataRequest = DocumentDrop_DataTransferItemFileDataRequest = {}));
58
58
  /**
59
59
  * Labs
60
60
  */
61
61
  var UpdateVirtualCodeStateNotification;
62
62
  (function (UpdateVirtualCodeStateNotification) {
63
- UpdateVirtualCodeStateNotification.type = new vscode.NotificationType('volar/client/labs/updateVirtualFileState');
63
+ UpdateVirtualCodeStateNotification.type = new protocol.NotificationType('volar/client/labs/updateVirtualFileState');
64
64
  })(UpdateVirtualCodeStateNotification || (exports.UpdateVirtualCodeStateNotification = UpdateVirtualCodeStateNotification = {}));
65
65
  var UpdateServicePluginStateNotification;
66
66
  (function (UpdateServicePluginStateNotification) {
67
- UpdateServicePluginStateNotification.type = new vscode.NotificationType('volar/client/labs/updateServicePluginState');
67
+ UpdateServicePluginStateNotification.type = new protocol.NotificationType('volar/client/labs/updateServicePluginState');
68
68
  })(UpdateServicePluginStateNotification || (exports.UpdateServicePluginStateNotification = UpdateServicePluginStateNotification = {}));
69
69
  var GetServicePluginsRequest;
70
70
  (function (GetServicePluginsRequest) {
71
- GetServicePluginsRequest.type = new vscode.RequestType('volar/client/servicePlugins');
71
+ GetServicePluginsRequest.type = new protocol.RequestType('volar/client/servicePlugins');
72
72
  })(GetServicePluginsRequest || (exports.GetServicePluginsRequest = GetServicePluginsRequest = {}));
73
73
  var GetVirtualFileRequest;
74
74
  (function (GetVirtualFileRequest) {
75
- GetVirtualFileRequest.type = new vscode.RequestType('volar/client/virtualFiles');
75
+ GetVirtualFileRequest.type = new protocol.RequestType('volar/client/virtualFiles');
76
76
  })(GetVirtualFileRequest || (exports.GetVirtualFileRequest = GetVirtualFileRequest = {}));
77
77
  var GetVirtualCodeRequest;
78
78
  (function (GetVirtualCodeRequest) {
79
- GetVirtualCodeRequest.type = new vscode.RequestType('volar/client/virtualFile');
79
+ GetVirtualCodeRequest.type = new protocol.RequestType('volar/client/virtualFile');
80
80
  })(GetVirtualCodeRequest || (exports.GetVirtualCodeRequest = GetVirtualCodeRequest = {}));
81
81
  var LoadedTSFilesMetaRequest;
82
82
  (function (LoadedTSFilesMetaRequest) {
83
- LoadedTSFilesMetaRequest.type = new vscode.RequestType0('volar/client/loadedTsFiles');
83
+ LoadedTSFilesMetaRequest.type = new protocol.RequestType0('volar/client/loadedTsFiles');
84
84
  })(LoadedTSFilesMetaRequest || (exports.LoadedTSFilesMetaRequest = LoadedTSFilesMetaRequest = {}));
85
85
  //# sourceMappingURL=protocol.js.map