-
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
Codelens Freezes when double clicking in the codelens view. #46893
Comments
(Experimental duplicate detection) |
Can you attach the stack trace that printed onto the console (F1 > Developer Tools > Console) or even better, select 'Break on all errors' in F1 > Developer Tools > Sources and provide the full trace and source (screen shot is enough) when this happens. Thanks |
Thanks. That's a good stack trace but it seems to come from the suggest widget... In your original comment you mentioned |
Thanks. |
I was able to reproduce but I have pushed code to prevent the |
Ops, should have said 'I was not able to reproduce'... I just added some fail-safe code without reproducing... |
I can confirm it does not happen anymore in the latest insiders build. Thanks! |
Ok, thanks |
Issue Type: Bug
Open any project that has language support for reference counting and codelens, click on one of the
2 references
(or any number) links to open a Codelens view. Edit something in the codelens view (like add a comment, or anything really) and do not save. Now double click in the codelens view, to go to the file in full view mode.Expected results: takes you to the file, leaving codelens.
Actual result: codelens glitches out and stops being interactable, cannot be closed, and often glitches out line numbers in the reference display. It also prints this in the corner if I try to close the codelens view clicking a reference count link:
Cannot read property 'getStartPosition' of null.
and if I press escape:
Cannot read property 'getStartPosition' of null
Doing a vs-code soft reload (reload command) fixes the bugged out codelens view, but the line number references are all garbled and highlight non-matching things, not the actual references. This persists past saves and soft reloads, the only way to fix is to actually quit the app and open it again. I did not file separate issues for these two problems (window being frozen, and line numbers being off) because they seem to have the same root cause: codelens not working properly with unsaved file modifications.
VS Code version: Code 1.21.1 (79b44aa, 2018-03-14T14:39:09.335Z)
OS version: Darwin x64 17.4.0
System Info
Extensions (11)
The text was updated successfully, but these errors were encountered: