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
the modal box opens and works fine. Though, the docstring is not read as when using an LSP such as rust-analyzer. This feature would improve code understanding because there would be no need to go to definition to read the docstring.
The text was updated successfully, but these errors were encountered:
Yes, the Slang parser can get us the doc strings for functions, even in the presence of syntax errors in the file.
However, currently the Language Server uses an ad-hoc JS analysis phase to build up a representation of the code used in navigation or for things like onHover lookup. We will migrate that to Slang's binding analysis capabilities eventually - but it is a big task.
The alternative is to use the existing ad-hoc JS analysis to find the function definition in the onHover case, then reparse the file with slang (and the function line/column info) to pull out the comment. Not ideal - but it would get us a useful feature.
When hovering over a function by the use of the lua function on neovim
the modal box opens and works fine. Though, the docstring is not read as when using an LSP such as rust-analyzer. This feature would improve code understanding because there would be no need to go to definition to read the docstring.
The text was updated successfully, but these errors were encountered: