You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't jump-to-def on some_ref(). We also don't identify the error with a red squiggle.
The text was updated successfully, but these errors were encountered:
cjhopman
changed the title
starlark lsp jump to def works poorly if file contains errors
lsp jump to def works poorly if file contains errors
Aug 29, 2023
Yeah, jump to definition (and most LSP things) don't work very well when there are parse errors. The LSP gets the new text of the source file, and tries to parse it. But as long as there are parse errors, it uses its last-known valid parse state, if any. Ideally the parser would handle such cases more gracefully.
For this code:
You can't jump-to-def on some_ref(). We do have a red squiggle for the bad function, so that's good. Maybe we should jump to the error.
For this:
You can't jump-to-def on some_ref(). We also don't identify the error with a red squiggle.
The text was updated successfully, but these errors were encountered: