@vue/language-service 1.9.0-alpha.0 → 1.9.0-alpha.2
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDragImportEdits = void 0;
|
|
4
4
|
const shared_1 = require("@vue/shared");
|
|
5
|
-
const
|
|
5
|
+
const path = require("path-browserify");
|
|
6
6
|
const vue_extract_file_1 = require("../plugins/vue-extract-file");
|
|
7
7
|
const types_1 = require("../types");
|
|
8
8
|
function getDragImportEdits(ts, ctx, uri, importUri, casing) {
|
|
@@ -25,7 +25,7 @@ function getDragImportEdits(ts, ctx, uri, importUri, casing) {
|
|
|
25
25
|
start: document.positionAt(script.startTagEnd),
|
|
26
26
|
end: document.positionAt(script.startTagEnd),
|
|
27
27
|
},
|
|
28
|
-
newText: `\nimport ${newName} from './${
|
|
28
|
+
newText: `\nimport ${newName} from './${path.relative(path.dirname(uri), importUri) || importUri.substring(importUri.lastIndexOf('/') + 1)}'`,
|
|
29
29
|
},
|
|
30
30
|
];
|
|
31
31
|
if (sfc.script) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-service",
|
|
3
|
-
"version": "1.9.0-alpha.
|
|
3
|
+
"version": "1.9.0-alpha.2",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
"update-html-data": "node ./scripts/update-html-data.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "~1.10.
|
|
21
|
-
"@volar/language-service": "~1.10.
|
|
22
|
-
"@volar/typescript": "~1.10.
|
|
20
|
+
"@volar/language-core": "~1.10.10",
|
|
21
|
+
"@volar/language-service": "~1.10.10",
|
|
22
|
+
"@volar/typescript": "~1.10.10",
|
|
23
23
|
"@vue/compiler-dom": "^3.3.0",
|
|
24
|
-
"@vue/language-core": "1.9.0-alpha.
|
|
24
|
+
"@vue/language-core": "1.9.0-alpha.2",
|
|
25
25
|
"@vue/shared": "^3.3.0",
|
|
26
26
|
"computeds": "^0.0.1",
|
|
27
|
+
"path-browserify": "^1.0.1",
|
|
27
28
|
"volar-service-css": "0.0.16",
|
|
28
29
|
"volar-service-emmet": "0.0.16",
|
|
29
30
|
"volar-service-html": "0.0.16",
|
|
@@ -37,9 +38,10 @@
|
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/node": "latest",
|
|
40
|
-
"@
|
|
41
|
+
"@types/path-browserify": "latest",
|
|
42
|
+
"@volar/kit": "~1.10.10",
|
|
41
43
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
42
44
|
"vscode-uri": "^3.0.8"
|
|
43
45
|
},
|
|
44
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f77140a9e3f75713534d55821d5b22432d832646"
|
|
45
47
|
}
|