-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Every now and then ctrl+alt+click does not open the editor #25580
Comments
From a brief investigation it appears to me the following is happening:
I believe it is correlated with the fact that we show the hover, it appears that this model is created and disposed a lot! It appears that the hover stops showing in the left hand side editor, which then leads to the model being disposed even if the model is showing in the right hand side editor. I have added log statements in the
|
Wow never saw this before, might be related to the adoption of |
This is a race condition: both the hover and the editor ask for a model reference for @joaomoreno this seems very fragile to me. If there is anyone asking for a model reference while the model is being resolved, the ref counting is not working at all. Imho the promise caching needs to take ref counting into account, so if a second guy wants a reference for something that is being resolved already, the counter must still increment. |
I didn't yet check the code. But:
This doesn't sound right. The hover should dispose the reference it has to the model, not the model itself.
I can check that. Edit: yup confirmed that there might be an issue there. |
It takes a few attempts:
The text was updated successfully, but these errors were encountered: