@volar/language-server 2.2.0-alpha.3 → 2.2.0-alpha.4
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.
|
@@ -243,7 +243,7 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
243
243
|
});
|
|
244
244
|
connection.onRequest(protocol_1.AutoInsertRequest.type, async (params, token) => {
|
|
245
245
|
return worker(params.textDocument.uri, token, service => {
|
|
246
|
-
return service.doAutoInsert(params.textDocument.uri, params.
|
|
246
|
+
return service.doAutoInsert(params.textDocument.uri, params.selection, params.change, token);
|
|
247
247
|
});
|
|
248
248
|
});
|
|
249
249
|
function worker(uri, token, cb) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"directory": "packages/language-server"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@volar/language-core": "2.2.0-alpha.
|
|
16
|
-
"@volar/language-service": "2.2.0-alpha.
|
|
17
|
-
"@volar/snapshot-document": "2.2.0-alpha.
|
|
18
|
-
"@volar/typescript": "2.2.0-alpha.
|
|
15
|
+
"@volar/language-core": "2.2.0-alpha.4",
|
|
16
|
+
"@volar/language-service": "2.2.0-alpha.4",
|
|
17
|
+
"@volar/snapshot-document": "2.2.0-alpha.4",
|
|
18
|
+
"@volar/typescript": "2.2.0-alpha.4",
|
|
19
19
|
"@vscode/l10n": "^0.0.16",
|
|
20
20
|
"path-browserify": "^1.0.1",
|
|
21
21
|
"request-light": "^0.7.0",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/path-browserify": "latest"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "bd85b9c56d71c411fa3342696014c4b5f7436568"
|
|
31
31
|
}
|
package/protocol.d.ts
CHANGED
|
@@ -33,13 +33,16 @@ export declare namespace GetMatchTsConfigRequest {
|
|
|
33
33
|
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
34
34
|
}
|
|
35
35
|
export declare namespace AutoInsertRequest {
|
|
36
|
-
type ParamsType =
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
type ParamsType = {
|
|
37
|
+
textDocument: vscode.TextDocumentIdentifier;
|
|
38
|
+
selection: vscode.Position;
|
|
39
|
+
change: {
|
|
40
|
+
rangeOffset: number;
|
|
41
|
+
rangeLength: number;
|
|
39
42
|
text: string;
|
|
40
43
|
};
|
|
41
44
|
};
|
|
42
|
-
type ResponseType = string |
|
|
45
|
+
type ResponseType = string | null | undefined;
|
|
43
46
|
type ErrorType = never;
|
|
44
47
|
const type: vscode.RequestType<ParamsType, ResponseType, never>;
|
|
45
48
|
}
|