@vue/language-service 3.0.7 → 3.1.0-alpha.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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sleep = sleep;
|
|
4
|
+
exports.isTsDocument = isTsDocument;
|
|
5
|
+
function sleep(ms) {
|
|
6
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
7
|
+
}
|
|
8
|
+
function isTsDocument(document) {
|
|
9
|
+
return document.languageId === 'javascript'
|
|
10
|
+
|| document.languageId === 'typescript'
|
|
11
|
+
|| document.languageId === 'javascriptreact'
|
|
12
|
+
|| document.languageId === 'typescriptreact';
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -85,7 +85,7 @@ function create({ getComponentNames, getElementNames, getComponentProps }) {
|
|
|
85
85
|
attrText = attrText.slice('v-model:'.length);
|
|
86
86
|
}
|
|
87
87
|
else if (attrText === 'v-model') {
|
|
88
|
-
attrText =
|
|
88
|
+
attrText = 'modelValue'; // TODO: support for experimentalModelPropName?
|
|
89
89
|
}
|
|
90
90
|
else if (attrText.startsWith('v-on:')) {
|
|
91
91
|
attrText = 'on-' + (0, language_core_1.hyphenateAttr)(attrText.slice('v-on:'.length));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-service",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"data",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@volar/language-service": "2.4.23",
|
|
21
|
-
"@vue/language-core": "3.0.
|
|
21
|
+
"@vue/language-core": "3.1.0-alpha.0",
|
|
22
22
|
"@vue/shared": "^3.5.0",
|
|
23
23
|
"path-browserify": "^1.0.1",
|
|
24
24
|
"volar-service-css": "0.0.65",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@volar/kit": "2.4.23",
|
|
38
38
|
"@volar/typescript": "2.4.23",
|
|
39
39
|
"@vue/compiler-dom": "^3.5.0",
|
|
40
|
-
"@vue/typescript-plugin": "3.0.
|
|
40
|
+
"@vue/typescript-plugin": "3.1.0-alpha.0",
|
|
41
41
|
"vscode-css-languageservice": "^6.3.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "adcbd8b1a7bf432844230755de999d22b95dc160"
|
|
44
44
|
}
|