@volar/typescript 1.6.2 → 1.6.4
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/getProgram.js +5 -12
- package/package.json +3 -3
package/out/getProgram.js
CHANGED
|
@@ -120,18 +120,11 @@ function getProgram(ts, core, ls) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|| fileName.endsWith('.mjs')
|
|
129
|
-
|| fileName.endsWith('.mts')
|
|
130
|
-
|| fileName.endsWith('.cjs')
|
|
131
|
-
|| fileName.endsWith('.cts')) {
|
|
132
|
-
scriptTarget = ts.ScriptTarget.Latest;
|
|
133
|
-
}
|
|
134
|
-
file = ts.createSourceFile(fileName, docText, scriptTarget);
|
|
123
|
+
file = ts.createSourceFile(fileName, docText, ts.ScriptTarget.Latest, undefined, ts.ScriptKind.Deferred);
|
|
124
|
+
// fix https://github.com/vuejs/language-tools/issues/2622 for TS 5.0
|
|
125
|
+
file.originalFileName = fileName;
|
|
126
|
+
file.path = fileName.toLowerCase();
|
|
127
|
+
file.resolvedPath = fileName.toLowerCase();
|
|
135
128
|
}
|
|
136
129
|
}
|
|
137
130
|
const newDiagnostic = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/typescript",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"directory": "packages/typescript"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.6.
|
|
16
|
+
"@volar/language-core": "1.6.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"typescript": "*"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "653d792a5b1498f5b063f6a81a500a1db27b1ca7"
|
|
22
22
|
}
|