We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9761a0 commit 07f3bd5Copy full SHA for 07f3bd5
packages/vue-language-core/src/lsContext.ts
@@ -161,7 +161,7 @@ export function createLanguageContext(
161
162
// .ts / .js / .d.ts / .json ...
163
for (const tsFileVersion of tsFileVersions) {
164
- if (!vueFileNames.has(tsFileVersion[0]) && !host.fileExists?.(tsFileVersion[0])) {
+ if (!tsFileNames.has(tsFileVersion[0]) && !host.getScriptSnapshot(tsFileVersion[0])) {
165
// delete
166
tsFileVersions.delete(tsFileVersion[0]);
167
tsFileUpdated = true;
0 commit comments