volar-service-html 0.0.28 → 0.0.29
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.js +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -207,8 +207,8 @@ function create({ languageId = 'html', useDefaultDataProvider = true, useCustomD
|
|
|
207
207
|
async provideAutoInsertionEdit(document, position, lastChange) {
|
|
208
208
|
return worker(document, async (htmlDocument) => {
|
|
209
209
|
const lastCharacter = lastChange.text[lastChange.text.length - 1];
|
|
210
|
-
const rangeLengthIsZero = lastChange.range.start.line
|
|
211
|
-
&& lastChange.range.start.character
|
|
210
|
+
const rangeLengthIsZero = lastChange.range.start.line === lastChange.range.end.line
|
|
211
|
+
&& lastChange.range.start.character === lastChange.range.end.character;
|
|
212
212
|
if (rangeLengthIsZero && lastCharacter === '=') {
|
|
213
213
|
const enabled = (await context.env.getConfiguration?.('html.autoCreateQuotes')) ?? true;
|
|
214
214
|
if (enabled) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-html",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "Integrate vscode-languageservice-html into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/html",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"optional": true
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "6927645293abcc249e7a39c98e52b9f5a2c08469"
|
|
43
43
|
}
|