add flag –show_documentSymbols
for lsp symbol lookup
#864
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a flag --show-errors which prints the diagnostics from the file to the console. This is used by VSCode Language Server extension to catch the stdout and parse into JSON,
Steps to test it -
lsp/add_flag/show-error
branch../src/bin/lpython --show-documentSymbols <file_name>
in terminal. This will be used by LPython’s VSCode extension for document symbol lookup feature.To Test it in VSCode extension -
Clone LPython’s VSCode Extension: https://github.com/ankitaS11/lpyth and follow the instructions mentioned in its README.
NOTE: This can only be tested once #863 gets merged.