Skip to content

Commit

Permalink
When file is deleted need to marked correctly in the project as remov…
Browse files Browse the repository at this point in the history
…ed file
  • Loading branch information
sheetalkamat committed Oct 12, 2020
1 parent ac107c9 commit 36d89be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/scriptInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ namespace ts.server {
const existingRoot = p.getRootFilesMap().get(this.path);
// detach is unnecessary since we'll clean the list of containing projects anyways
p.removeFile(this, /*fileExists*/ false, /*detachFromProjects*/ false);
p.onFileAddedOrRemoved();
// If the info was for the external or configured project's root,
// add missing file as the root
if (existingRoot && !isInferredProject(p)) {
Expand Down

0 comments on commit 36d89be

Please sign in to comment.