@volar/vscode 2.4.12 → 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.
- package/index.d.ts +2 -2
- package/index.js +3 -2
- package/lib/features/autoInsertion.js +2 -2
- package/lib/features/documentDropEdits.js +4 -4
- package/lib/features/fileReferences.js +2 -2
- package/lib/features/reloadProject.js +2 -2
- package/lib/features/tsconfig.js +2 -2
- package/lib/features/writeVirtualFiles.js +2 -2
- package/package.json +4 -4
- package/protocol.d.ts +135 -0
- package/protocol.js +85 -0
package/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { BaseLanguageClient, Middleware } from 'vscode-languageclient';
|
|
|
11
11
|
export declare const middleware: Middleware;
|
|
12
12
|
export declare function parseServerCommand(command: vscode.Command): vscode.Command;
|
|
13
13
|
export declare const currentLabsVersion = "2.3.1";
|
|
14
|
-
export declare function createLabsInfo(
|
|
14
|
+
export declare function createLabsInfo(_?: typeof import('@volar/language-server/protocol')): {
|
|
15
15
|
extensionExports: LabsInfo;
|
|
16
16
|
addLanguageClient(languageClient: BaseLanguageClient): void;
|
|
17
17
|
};
|
|
@@ -20,6 +20,6 @@ export interface LabsInfo {
|
|
|
20
20
|
version: typeof currentLabsVersion;
|
|
21
21
|
languageClients: BaseLanguageClient[];
|
|
22
22
|
onDidAddLanguageClient: vscode.Event<BaseLanguageClient>;
|
|
23
|
-
languageServerProtocol: typeof import('
|
|
23
|
+
languageServerProtocol: typeof import('./protocol.js');
|
|
24
24
|
};
|
|
25
25
|
}
|
package/index.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.currentLabsVersion = exports.middleware = exports.getTsdk = exports.acti
|
|
|
18
18
|
exports.parseServerCommand = parseServerCommand;
|
|
19
19
|
exports.createLabsInfo = createLabsInfo;
|
|
20
20
|
const vscode = require("vscode");
|
|
21
|
+
const protocol = require("./protocol.js");
|
|
21
22
|
var autoInsertion_1 = require("./lib/features/autoInsertion");
|
|
22
23
|
Object.defineProperty(exports, "activateAutoInsertion", { enumerable: true, get: function () { return autoInsertion_1.activate; } });
|
|
23
24
|
var documentDropEdits_1 = require("./lib/features/documentDropEdits");
|
|
@@ -96,13 +97,13 @@ function parseServerCommand(command) {
|
|
|
96
97
|
return command;
|
|
97
98
|
}
|
|
98
99
|
exports.currentLabsVersion = '2.3.1';
|
|
99
|
-
function createLabsInfo(
|
|
100
|
+
function createLabsInfo(_) {
|
|
100
101
|
const onDidAddLanguageClientEmitter = new vscode.EventEmitter();
|
|
101
102
|
const extensionExports = {
|
|
102
103
|
volarLabs: {
|
|
103
104
|
version: exports.currentLabsVersion,
|
|
104
105
|
languageClients: [],
|
|
105
|
-
languageServerProtocol,
|
|
106
|
+
languageServerProtocol: protocol,
|
|
106
107
|
onDidAddLanguageClient: onDidAddLanguageClientEmitter.event,
|
|
107
108
|
},
|
|
108
109
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.activate = activate;
|
|
4
|
-
const
|
|
4
|
+
const protocol_js_1 = require("../../protocol.js");
|
|
5
5
|
const vscode = require("vscode");
|
|
6
6
|
function activate(selector, client) {
|
|
7
7
|
let isEnabled = false;
|
|
@@ -92,7 +92,7 @@ function activate(selector, client) {
|
|
|
92
92
|
text: lastChange.text,
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
|
-
const insertion = await client.sendRequest(
|
|
95
|
+
const insertion = await client.sendRequest(protocol_js_1.AutoInsertRequest.type, params);
|
|
96
96
|
if (insertion && isEnabled && !isCancel()) {
|
|
97
97
|
activeEditor.insertSnippet(new vscode.SnippetString(insertion));
|
|
98
98
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.activate = activate;
|
|
4
4
|
const vscode = require("vscode");
|
|
5
|
-
const
|
|
5
|
+
const protocol_js_1 = require("../../protocol.js");
|
|
6
6
|
function activate(selector, client) {
|
|
7
7
|
let lastDataTransfer;
|
|
8
|
-
return vscode.Disposable.from(client.onRequest(
|
|
8
|
+
return vscode.Disposable.from(client.onRequest(protocol_js_1.DocumentDrop_DataTransferItemAsStringRequest.type, async ({ mimeType }) => {
|
|
9
9
|
const item = lastDataTransfer.get(mimeType);
|
|
10
10
|
return await item?.asString() ?? '';
|
|
11
|
-
}), client.onRequest(
|
|
11
|
+
}), client.onRequest(protocol_js_1.DocumentDrop_DataTransferItemFileDataRequest.type, async ({ mimeType }) => {
|
|
12
12
|
const item = lastDataTransfer.get(mimeType);
|
|
13
13
|
return await item?.asFile()?.data() ?? new Uint8Array();
|
|
14
14
|
}), vscode.languages.registerDocumentDropEditProvider(selector, {
|
|
15
15
|
async provideDocumentDropEdits(document, position, dataTransfer) {
|
|
16
16
|
lastDataTransfer = dataTransfer;
|
|
17
|
-
const result = await client.sendRequest(
|
|
17
|
+
const result = await client.sendRequest(protocol_js_1.DocumentDropRequest.type, {
|
|
18
18
|
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document),
|
|
19
19
|
position: client.code2ProtocolConverter.asPosition(position),
|
|
20
20
|
dataTransfer: [...dataTransfer].map(([mimeType, item]) => {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.activate = activate;
|
|
4
4
|
const vscode = require("vscode");
|
|
5
5
|
const nls = require("vscode-nls");
|
|
6
|
-
const
|
|
6
|
+
const protocol_js_1 = require("../../protocol.js");
|
|
7
7
|
const localize = nls.loadMessageBundle();
|
|
8
8
|
function activate(cmd, client) {
|
|
9
9
|
return vscode.commands.registerCommand(cmd, async (uri) => {
|
|
@@ -19,7 +19,7 @@ function activate(cmd, client) {
|
|
|
19
19
|
}
|
|
20
20
|
uri = editor.document.uri;
|
|
21
21
|
}
|
|
22
|
-
const response = await client.sendRequest(
|
|
22
|
+
const response = await client.sendRequest(protocol_js_1.FindFileReferenceRequest.type, { textDocument: { uri: uri.toString() } });
|
|
23
23
|
if (!response) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.activate = activate;
|
|
4
4
|
const vscode = require("vscode");
|
|
5
|
-
const
|
|
5
|
+
const protocol_js_1 = require("../../protocol.js");
|
|
6
6
|
function activate(cmd, client) {
|
|
7
7
|
return vscode.commands.registerCommand(cmd, () => {
|
|
8
8
|
if (vscode.window.activeTextEditor) {
|
|
9
|
-
client.sendNotification(
|
|
9
|
+
client.sendNotification(protocol_js_1.ReloadProjectNotification.type, client.code2ProtocolConverter.asTextDocumentIdentifier(vscode.window.activeTextEditor.document));
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
}
|
package/lib/features/tsconfig.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.activate = activate;
|
|
4
4
|
const vscode = require("vscode");
|
|
5
|
-
const
|
|
5
|
+
const protocol_js_1 = require("../../protocol.js");
|
|
6
6
|
const path = require("path-browserify");
|
|
7
7
|
function activate(selector, cmd, client) {
|
|
8
8
|
const subscriptions = [];
|
|
@@ -26,7 +26,7 @@ function activate(selector, cmd, client) {
|
|
|
26
26
|
|| !vscode.languages.match(selector, vscode.window.activeTextEditor.document)) {
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
const tsconfig = await client.sendRequest(
|
|
29
|
+
const tsconfig = await client.sendRequest(protocol_js_1.GetMatchTsConfigRequest.type, client.code2ProtocolConverter.asTextDocumentIdentifier(vscode.window.activeTextEditor.document));
|
|
30
30
|
if (tsconfig?.uri) {
|
|
31
31
|
currentTsconfigUri = vscode.Uri.parse(tsconfig.uri);
|
|
32
32
|
statusBar.text = path.relative((vscode.workspace.rootPath?.replace(/\\/g, '/') || '/'), currentTsconfigUri.fsPath.replace(/\\/g, '/'));
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.activate = activate;
|
|
4
4
|
const vscode = require("vscode");
|
|
5
|
-
const
|
|
5
|
+
const protocol_js_1 = require("../../protocol.js");
|
|
6
6
|
function activate(cmd, client) {
|
|
7
7
|
return vscode.commands.registerCommand(cmd, () => {
|
|
8
8
|
if (vscode.window.activeTextEditor) {
|
|
9
|
-
client.sendNotification(
|
|
9
|
+
client.sendNotification(protocol_js_1.WriteVirtualFilesNotification.type, client.code2ProtocolConverter.asTextDocumentIdentifier(vscode.window.activeTextEditor.document));
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/vscode",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"directory": "packages/vscode"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@volar/language-server": "2.4.12",
|
|
16
15
|
"path-browserify": "^1.0.1",
|
|
17
16
|
"vscode-languageclient": "^9.0.1",
|
|
18
17
|
"vscode-nls": "^5.2.0"
|
|
@@ -20,7 +19,8 @@
|
|
|
20
19
|
"devDependencies": {
|
|
21
20
|
"@types/node": "latest",
|
|
22
21
|
"@types/path-browserify": "latest",
|
|
23
|
-
"@types/vscode": "^1.82.0"
|
|
22
|
+
"@types/vscode": "^1.82.0",
|
|
23
|
+
"@volar/language-server": "2.4.14"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "e8280897a7bc0e0366f657b6aefd4230ad5ee027"
|
|
26
26
|
}
|
package/protocol.d.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { CodeMapping, DocumentDropEdit } from '@volar/language-server';
|
|
2
|
+
import * as protocol from 'vscode-languageclient';
|
|
3
|
+
export * from 'vscode-languageclient';
|
|
4
|
+
/**
|
|
5
|
+
* Client request server
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace FindFileReferenceRequest {
|
|
8
|
+
type ParamsType = {
|
|
9
|
+
textDocument: protocol.TextDocumentIdentifier;
|
|
10
|
+
};
|
|
11
|
+
type ResponseType = protocol.Location[] | null | undefined;
|
|
12
|
+
type ErrorType = never;
|
|
13
|
+
const type: protocol.RequestType<ParamsType, ResponseType, never>;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace GetMatchTsConfigRequest {
|
|
16
|
+
type ParamsType = protocol.TextDocumentIdentifier;
|
|
17
|
+
type ResponseType = {
|
|
18
|
+
uri: string;
|
|
19
|
+
} | null | undefined;
|
|
20
|
+
type ErrorType = never;
|
|
21
|
+
const type: protocol.RequestType<protocol.TextDocumentIdentifier, ResponseType, never>;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace AutoInsertRequest {
|
|
24
|
+
type ParamsType = {
|
|
25
|
+
textDocument: protocol.TextDocumentIdentifier;
|
|
26
|
+
selection: protocol.Position;
|
|
27
|
+
change: {
|
|
28
|
+
rangeOffset: number;
|
|
29
|
+
rangeLength: number;
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type ResponseType = string | null | undefined;
|
|
34
|
+
type ErrorType = never;
|
|
35
|
+
const type: protocol.RequestType<ParamsType, ResponseType, never>;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace WriteVirtualFilesNotification {
|
|
38
|
+
const type: protocol.NotificationType<protocol.TextDocumentIdentifier>;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace ReloadProjectNotification {
|
|
41
|
+
const type: protocol.NotificationType<protocol.TextDocumentIdentifier>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Document Drop
|
|
45
|
+
*/
|
|
46
|
+
export declare namespace DocumentDropRequest {
|
|
47
|
+
type ParamsType = protocol.TextDocumentPositionParams & {
|
|
48
|
+
dataTransfer: {
|
|
49
|
+
mimeType: string;
|
|
50
|
+
value: any;
|
|
51
|
+
file?: {
|
|
52
|
+
name: string;
|
|
53
|
+
uri?: string;
|
|
54
|
+
};
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
type ResponseType = DocumentDropEdit | null | undefined;
|
|
58
|
+
type ErrorType = never;
|
|
59
|
+
const type: protocol.RequestType<ParamsType, ResponseType, never>;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace DocumentDrop_DataTransferItemAsStringRequest {
|
|
62
|
+
type ParamsType = {
|
|
63
|
+
mimeType: string;
|
|
64
|
+
};
|
|
65
|
+
type ResponseType = string;
|
|
66
|
+
type ErrorType = never;
|
|
67
|
+
const type: protocol.RequestType<ParamsType, string, never>;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace DocumentDrop_DataTransferItemFileDataRequest {
|
|
70
|
+
type ParamsType = {
|
|
71
|
+
mimeType: string;
|
|
72
|
+
};
|
|
73
|
+
type ResponseType = Uint8Array;
|
|
74
|
+
type ErrorType = never;
|
|
75
|
+
const type: protocol.RequestType<ParamsType, ResponseType, never>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Labs
|
|
79
|
+
*/
|
|
80
|
+
export declare namespace UpdateVirtualCodeStateNotification {
|
|
81
|
+
type ParamsType = {
|
|
82
|
+
fileUri: string;
|
|
83
|
+
virtualCodeId: string;
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
};
|
|
86
|
+
const type: protocol.NotificationType<ParamsType>;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace UpdateServicePluginStateNotification {
|
|
89
|
+
type ParamsType = {
|
|
90
|
+
uri: string;
|
|
91
|
+
serviceId: number;
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
};
|
|
94
|
+
const type: protocol.NotificationType<ParamsType>;
|
|
95
|
+
}
|
|
96
|
+
export declare namespace GetServicePluginsRequest {
|
|
97
|
+
type ParamsType = protocol.TextDocumentIdentifier;
|
|
98
|
+
type ResponseType = {
|
|
99
|
+
id: number;
|
|
100
|
+
name?: string;
|
|
101
|
+
features: string[];
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
}[] | null | undefined;
|
|
104
|
+
type ErrorType = never;
|
|
105
|
+
const type: protocol.RequestType<protocol.TextDocumentIdentifier, ResponseType, never>;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace GetVirtualFileRequest {
|
|
108
|
+
type VirtualCodeInfo = {
|
|
109
|
+
fileUri: string;
|
|
110
|
+
virtualCodeId: string;
|
|
111
|
+
languageId: string;
|
|
112
|
+
version: number;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
embeddedCodes: VirtualCodeInfo[];
|
|
115
|
+
};
|
|
116
|
+
type ParamsType = protocol.TextDocumentIdentifier;
|
|
117
|
+
type ResponseType = VirtualCodeInfo | null | undefined;
|
|
118
|
+
type ErrorType = never;
|
|
119
|
+
const type: protocol.RequestType<protocol.TextDocumentIdentifier, ResponseType, never>;
|
|
120
|
+
}
|
|
121
|
+
export declare namespace GetVirtualCodeRequest {
|
|
122
|
+
type ParamsType = {
|
|
123
|
+
fileUri: string;
|
|
124
|
+
virtualCodeId: string;
|
|
125
|
+
};
|
|
126
|
+
type ResponseType = {
|
|
127
|
+
content: string;
|
|
128
|
+
mappings: Record<string, CodeMapping[]>;
|
|
129
|
+
};
|
|
130
|
+
type ErrorType = never;
|
|
131
|
+
const type: protocol.RequestType<ParamsType, ResponseType, never>;
|
|
132
|
+
}
|
|
133
|
+
export declare namespace LoadedTSFilesMetaRequest {
|
|
134
|
+
const type: protocol.RequestType0<unknown, unknown>;
|
|
135
|
+
}
|
package/protocol.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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 protocol = require("vscode-languageclient");
|
|
19
|
+
__exportStar(require("vscode-languageclient"), exports);
|
|
20
|
+
/**
|
|
21
|
+
* Client request server
|
|
22
|
+
*/
|
|
23
|
+
var FindFileReferenceRequest;
|
|
24
|
+
(function (FindFileReferenceRequest) {
|
|
25
|
+
FindFileReferenceRequest.type = new protocol.RequestType('volar/client/findFileReference');
|
|
26
|
+
})(FindFileReferenceRequest || (exports.FindFileReferenceRequest = FindFileReferenceRequest = {}));
|
|
27
|
+
var GetMatchTsConfigRequest;
|
|
28
|
+
(function (GetMatchTsConfigRequest) {
|
|
29
|
+
GetMatchTsConfigRequest.type = new protocol.RequestType('volar/client/tsconfig');
|
|
30
|
+
})(GetMatchTsConfigRequest || (exports.GetMatchTsConfigRequest = GetMatchTsConfigRequest = {}));
|
|
31
|
+
var AutoInsertRequest;
|
|
32
|
+
(function (AutoInsertRequest) {
|
|
33
|
+
AutoInsertRequest.type = new protocol.RequestType('volar/client/autoInsert');
|
|
34
|
+
})(AutoInsertRequest || (exports.AutoInsertRequest = AutoInsertRequest = {}));
|
|
35
|
+
var WriteVirtualFilesNotification;
|
|
36
|
+
(function (WriteVirtualFilesNotification) {
|
|
37
|
+
WriteVirtualFilesNotification.type = new protocol.NotificationType('volar/client/writeVirtualFiles');
|
|
38
|
+
})(WriteVirtualFilesNotification || (exports.WriteVirtualFilesNotification = WriteVirtualFilesNotification = {}));
|
|
39
|
+
var ReloadProjectNotification;
|
|
40
|
+
(function (ReloadProjectNotification) {
|
|
41
|
+
ReloadProjectNotification.type = new protocol.NotificationType('volar/client/reloadProject');
|
|
42
|
+
})(ReloadProjectNotification || (exports.ReloadProjectNotification = ReloadProjectNotification = {}));
|
|
43
|
+
/**
|
|
44
|
+
* Document Drop
|
|
45
|
+
*/
|
|
46
|
+
var DocumentDropRequest;
|
|
47
|
+
(function (DocumentDropRequest) {
|
|
48
|
+
DocumentDropRequest.type = new protocol.RequestType('volar/client/documentDrop');
|
|
49
|
+
})(DocumentDropRequest || (exports.DocumentDropRequest = DocumentDropRequest = {}));
|
|
50
|
+
var DocumentDrop_DataTransferItemAsStringRequest;
|
|
51
|
+
(function (DocumentDrop_DataTransferItemAsStringRequest) {
|
|
52
|
+
DocumentDrop_DataTransferItemAsStringRequest.type = new protocol.RequestType('volar/client/documentDrop/asString');
|
|
53
|
+
})(DocumentDrop_DataTransferItemAsStringRequest || (exports.DocumentDrop_DataTransferItemAsStringRequest = DocumentDrop_DataTransferItemAsStringRequest = {}));
|
|
54
|
+
var DocumentDrop_DataTransferItemFileDataRequest;
|
|
55
|
+
(function (DocumentDrop_DataTransferItemFileDataRequest) {
|
|
56
|
+
DocumentDrop_DataTransferItemFileDataRequest.type = new protocol.RequestType('volar/client/documentDrop/fileData');
|
|
57
|
+
})(DocumentDrop_DataTransferItemFileDataRequest || (exports.DocumentDrop_DataTransferItemFileDataRequest = DocumentDrop_DataTransferItemFileDataRequest = {}));
|
|
58
|
+
/**
|
|
59
|
+
* Labs
|
|
60
|
+
*/
|
|
61
|
+
var UpdateVirtualCodeStateNotification;
|
|
62
|
+
(function (UpdateVirtualCodeStateNotification) {
|
|
63
|
+
UpdateVirtualCodeStateNotification.type = new protocol.NotificationType('volar/client/labs/updateVirtualFileState');
|
|
64
|
+
})(UpdateVirtualCodeStateNotification || (exports.UpdateVirtualCodeStateNotification = UpdateVirtualCodeStateNotification = {}));
|
|
65
|
+
var UpdateServicePluginStateNotification;
|
|
66
|
+
(function (UpdateServicePluginStateNotification) {
|
|
67
|
+
UpdateServicePluginStateNotification.type = new protocol.NotificationType('volar/client/labs/updateServicePluginState');
|
|
68
|
+
})(UpdateServicePluginStateNotification || (exports.UpdateServicePluginStateNotification = UpdateServicePluginStateNotification = {}));
|
|
69
|
+
var GetServicePluginsRequest;
|
|
70
|
+
(function (GetServicePluginsRequest) {
|
|
71
|
+
GetServicePluginsRequest.type = new protocol.RequestType('volar/client/servicePlugins');
|
|
72
|
+
})(GetServicePluginsRequest || (exports.GetServicePluginsRequest = GetServicePluginsRequest = {}));
|
|
73
|
+
var GetVirtualFileRequest;
|
|
74
|
+
(function (GetVirtualFileRequest) {
|
|
75
|
+
GetVirtualFileRequest.type = new protocol.RequestType('volar/client/virtualFiles');
|
|
76
|
+
})(GetVirtualFileRequest || (exports.GetVirtualFileRequest = GetVirtualFileRequest = {}));
|
|
77
|
+
var GetVirtualCodeRequest;
|
|
78
|
+
(function (GetVirtualCodeRequest) {
|
|
79
|
+
GetVirtualCodeRequest.type = new protocol.RequestType('volar/client/virtualFile');
|
|
80
|
+
})(GetVirtualCodeRequest || (exports.GetVirtualCodeRequest = GetVirtualCodeRequest = {}));
|
|
81
|
+
var LoadedTSFilesMetaRequest;
|
|
82
|
+
(function (LoadedTSFilesMetaRequest) {
|
|
83
|
+
LoadedTSFilesMetaRequest.type = new protocol.RequestType0('volar/client/loadedTsFiles');
|
|
84
|
+
})(LoadedTSFilesMetaRequest || (exports.LoadedTSFilesMetaRequest = LoadedTSFilesMetaRequest = {}));
|
|
85
|
+
//# sourceMappingURL=protocol.js.map
|