Open j4k0xb opened 1 year ago
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.
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 AST