@volar/vscode 1.4.0-alpha.8 → 1.4.0
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/out/index.js +10 -0
- package/package.json +5 -4
package/out/index.js
CHANGED
|
@@ -29,6 +29,16 @@ function takeOverModeActive(context) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.takeOverModeActive = takeOverModeActive;
|
|
31
31
|
exports.middleware = {
|
|
32
|
+
async provideHover(document, position, token, next) {
|
|
33
|
+
const hover = await next(document, position, token);
|
|
34
|
+
for (const content of hover?.contents ?? []) {
|
|
35
|
+
if (content instanceof vscode.MarkdownString) {
|
|
36
|
+
content.isTrusted = true;
|
|
37
|
+
content.supportHtml = true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return hover;
|
|
41
|
+
},
|
|
32
42
|
async provideCodeActions(document, range, context, token, next) {
|
|
33
43
|
let actions = await next(document, range, context, token);
|
|
34
44
|
actions = actions?.map(action => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/vscode",
|
|
3
|
-
"version": "1.4.0
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"directory": "packages/vscode"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-server": "1.4.0
|
|
17
|
-
"@volar/source-map": "1.4.0
|
|
16
|
+
"@volar/language-server": "1.4.0",
|
|
17
|
+
"@volar/source-map": "1.4.0",
|
|
18
18
|
"typesafe-path": "^0.2.2",
|
|
19
19
|
"vscode-nls": "^5.2.0"
|
|
20
20
|
},
|
|
@@ -25,5 +25,6 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@types/vscode": "*",
|
|
27
27
|
"vscode-languageclient": "*"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"gitHead": "9bf14ef0d08c53f9ae32cf538d9748fa91cc4ab7"
|
|
29
30
|
}
|