@volar/language-service 1.4.0-alpha.10 → 1.4.0-alpha.11
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.
|
@@ -95,7 +95,10 @@ function register(context) {
|
|
|
95
95
|
const lines = await plugin.provideFormattingIndentSensitiveLines(map.virtualFileDocument, token);
|
|
96
96
|
if (lines) {
|
|
97
97
|
for (const line of lines) {
|
|
98
|
-
|
|
98
|
+
const sourceLine = map.toSourcePosition({ line: line, character: 0 })?.line;
|
|
99
|
+
if (sourceLine !== undefined) {
|
|
100
|
+
indentSensitiveLines.add(sourceLine);
|
|
101
|
+
}
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-service",
|
|
3
|
-
"version": "1.4.0-alpha.
|
|
3
|
+
"version": "1.4.0-alpha.11",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"directory": "packages/language-service"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.4.0-alpha.
|
|
17
|
-
"@volar/source-map": "1.4.0-alpha.
|
|
16
|
+
"@volar/language-core": "1.4.0-alpha.11",
|
|
17
|
+
"@volar/source-map": "1.4.0-alpha.11",
|
|
18
18
|
"typescript-auto-import-cache": "^0.2.1",
|
|
19
19
|
"vscode-html-languageservice": "^5.0.4",
|
|
20
20
|
"vscode-json-languageservice": "^5.2.0",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
23
23
|
"vscode-uri": "^3.0.7"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "56ab336278ed7f06851c3dfe1bbcd5b9a3112846"
|
|
26
26
|
}
|