@volar/typescript 1.4.1-patch.1 → 1.4.1-patch.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.
- package/out/getProgram.js +4 -2
- package/package.json +1 -1
package/out/getProgram.js
CHANGED
|
@@ -121,8 +121,10 @@ function getProgram(ts, core, ls) {
|
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
123
|
file = ts.createSourceFile(fileName, docText, ts.ScriptTarget.Latest, undefined, ts.ScriptKind.Deferred);
|
|
124
|
-
|
|
125
|
-
file.
|
|
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();
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
const newDiagnostic = {
|