Skip to content

Commit 36d89be

Browse files
committed
When file is deleted need to marked correctly in the project as removed file
1 parent ac107c9 commit 36d89be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/scriptInfo.ts

+1
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ namespace ts.server {
477477
const existingRoot = p.getRootFilesMap().get(this.path);
478478
// detach is unnecessary since we'll clean the list of containing projects anyways
479479
p.removeFile(this, /*fileExists*/ false, /*detachFromProjects*/ false);
480+
p.onFileAddedOrRemoved();
480481
// If the info was for the external or configured project's root,
481482
// add missing file as the root
482483
if (existingRoot && !isInferredProject(p)) {

0 commit comments

Comments
 (0)