New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
untitled - use ref counted lifecycle #194371
Conversation
@jrieken might need your help with the failing test |
@bpasero I debugged into this and what is happens is the following
It feels that someone, e.g the workbench, should also reference the newly created model so that a tab is opened for it? |
Yeah, good finding. We do track dirty untitled models and force open them, but with a delay of
Even when I change that to open instantly, the test fails and that is probably due to the Then I remember how this issue is addressed with I pushed a change to adopt this concept also for untitled files and the test seems to pass now. |
Fixes #192356
This starts to use references for untitled text model lifecycle. Upon
revert
, the model gets reset to be empty but not disposed. Those that create the reference dispose it by listening to therevert
.