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
After debugging a bit I found out it was introduced in #33 because validateTextDocument always delays the AST parsing but in the meantime onDocumentSymbol gets called which can't find the cached AST
The text was updated successfully, but these errors were encountered:
OK, I've found this. Worked around it by ensuring we have waited for parsing to finish before replying to the request that the editor sends.
There's an outside chance that they way I solved it will leave the outline unchanged after you rename something, so if you happen to see that, re-open this.
hildjj
added a commit
to hildjj/code-peggy-language
that referenced
this issue
Oct 13, 2024
Steps to reproduce:
Expected: show all symbols directly after opening
After debugging a bit I found out it was introduced in #33 because
validateTextDocument
always delays the AST parsing but in the meantimeonDocumentSymbol
gets called which can't find the cached ASTThe text was updated successfully, but these errors were encountered: