-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Symbols in Monaco stop to be recognized and cannot be navigated to #14880
Comments
I can reproduce the issue, I can not even select anything in the line anymore Reproduction steps:
|
Thanks @sdirix |
I can reproduce the problem, but only on Linux |
Very strange: the cached line width in |
The trouble seems to be that the editor is being rendered when it is already not visible anymore. The |
Well, it kinda makes sense, since it's the only line that needs to be re-rendered: when I -hover over the line, the text is underlined, when I click the link, the text goes back to non-underlined and needs to be re-rendered. All other lines keep their cached content and therefore width. |
When I look at the html structure in VS Code, I only ever see a single dom tree in the editor area when I switch between editors. So it seems as if they don't hide invisible editors, they just replace the editor in the dom with a new one. That would explain why this does not happen in VS Code. As for why it only happens on Linux: the recalculation of line widths happens with a delay of 200ms. If it takes longer that 200ms to hide the editor dom node when navigating, the old editor dom is still visible and the update of the width succeeds. |
I'm trying an approach where I set the model on the StandaloneCodeEditor to |
Fixes eclipse-theia#14880 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Looks like the approach fixes the problem. Now I just have to make sure the necessary view state (like scroll position, selection) is preserved and restored appropriately. |
Got the selection, etc. to restore properly, but now |
Seems like the focus is not restored properly when revealing the editor. Invoking |
Clear model from editor when the editor is hidden Fixes #14880 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Bug Description:
Steps to Reproduce:
Unfortunately this is not 100% guaranteed to lead to the issue. You have sometime to navigate to multiple different symbols and go back and forth. After some time symbols cannot be navigated to anymore.
Additional Information
The text was updated successfully, but these errors were encountered: