We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19ab8ab commit cb8aa9bCopy full SHA for cb8aa9b
1 file changed
src/harness/fakes.ts
@@ -332,7 +332,7 @@ namespace fakes {
332
if (cacheKey) {
333
const meta = this.vfs.filemeta(canonicalFileName);
334
const sourceFileFromMetadata = meta.get(cacheKey) as ts.SourceFile | undefined;
335
- if (sourceFileFromMetadata) {
+ if (sourceFileFromMetadata && sourceFileFromMetadata.getFullText() === content) {
336
this._sourceFiles.set(canonicalFileName, sourceFileFromMetadata);
337
return sourceFileFromMetadata;
338
}
0 commit comments