@volar/language-service 1.2.0-alpha.12 → 1.2.0-alpha.13
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.
|
@@ -50,15 +50,14 @@ function register(context) {
|
|
|
50
50
|
}, (plugin, document, arg) => {
|
|
51
51
|
var _a, _b;
|
|
52
52
|
return (_b = (_a = plugin.inlayHints) === null || _a === void 0 ? void 0 : _a.on) === null || _b === void 0 ? void 0 : _b.call(_a, document, arg);
|
|
53
|
-
}, (inlayHints, map) => inlayHints.map(_inlayHint => {
|
|
53
|
+
}, (inlayHints, map) => inlayHints.map((_inlayHint) => {
|
|
54
54
|
var _a;
|
|
55
55
|
if (!map)
|
|
56
56
|
return _inlayHint;
|
|
57
57
|
const position = map.toSourcePosition(_inlayHint.position);
|
|
58
58
|
const edits = (_a = _inlayHint.textEdits) === null || _a === void 0 ? void 0 : _a.map(textEdit => transformer.asTextEdit(textEdit, range => map.toSourceRange(range), map.virtualFileDocument)).filter(shared.notEmpty);
|
|
59
59
|
if (position) {
|
|
60
|
-
return Object.assign(Object.assign({}, _inlayHint), { position,
|
|
61
|
-
edits });
|
|
60
|
+
return Object.assign(Object.assign({}, _inlayHint), { position, textEdits: edits });
|
|
62
61
|
}
|
|
63
62
|
}).filter(shared.notEmpty), arr => arr.flat());
|
|
64
63
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-service",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.13",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"directory": "packages/language-service"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.2.0-alpha.
|
|
17
|
-
"@volar/shared": "1.2.0-alpha.
|
|
18
|
-
"@volar/source-map": "1.2.0-alpha.
|
|
19
|
-
"@volar/typescript-faster": "1.2.0-alpha.
|
|
16
|
+
"@volar/language-core": "1.2.0-alpha.13",
|
|
17
|
+
"@volar/shared": "1.2.0-alpha.13",
|
|
18
|
+
"@volar/source-map": "1.2.0-alpha.13",
|
|
19
|
+
"@volar/typescript-faster": "1.2.0-alpha.13",
|
|
20
20
|
"vscode-html-languageservice": "^5.0.4",
|
|
21
21
|
"vscode-json-languageservice": "^5.2.0",
|
|
22
22
|
"vscode-languageserver-protocol": "^3.17.3",
|
|
23
23
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
24
24
|
"vscode-uri": "^3.0.7"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2b935afad2e4e4e307ae525387f66516e496ba24"
|
|
27
27
|
}
|