mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
Report JSX-lowered files to the checker server as changed (#1817)
This commit is contained in:
@@ -192,7 +192,10 @@ export class Ts7Host {
|
||||
const key = tsgoPath(path);
|
||||
if (this.virtualFiles.get(key) === content) return;
|
||||
if (!this.virtualChanges.has(key))
|
||||
this.virtualChanges.set(key, this.virtualFiles.has(key) ? "changed" : "created");
|
||||
this.virtualChanges.set(
|
||||
key,
|
||||
this.virtualFiles.has(key) || trackedFileExists(path) ? "changed" : "created",
|
||||
);
|
||||
this.virtualFiles.set(key, content);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user