Skip to content

Closing background tab does not dispose dirty text models #98653

@alexdima

Description

@alexdima
  • open fileA.ts that exports a symbol that is used in fileB.ts
  • rename a symbol in fileA.ts
  • (fileB.ts opens as a background tab)
  • save all
  • hit the x on the fileB.ts tab
  • observe (through logging) that fileB.ts is not disposed

Now do the same steps, but first click on the tab with fileB.ts before hitting x. Now, fileB.ts is disposed.


Notice how fileB.ts and fileC.ts do not get disposed:
Kapture 2020-05-27 at 15 39 52


Notice how fileB.ts and fileC.ts get disposed now:
Kapture 2020-05-27 at 15 41 58

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeededworkbench-editorsManaging of editor widgets in workbench window

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions