Skip to content
Discussion options

You must be logged in to vote

Hi @akashsivaram ,

No, there is no equivalent to IntelliJ PSI in VS Code. If you need syntactic or semantic info about a source code, you must develop it in your extension, or rely on others extension providing such info for yours.

But, depending on your needs, you may use VS Commands to provide you structured info about the source code, abstracting the programming language. For instance, you may use vscode.executeDocumentSymbolProvider in order to retrieve all symbols (methods, classes, interfaces, variables, etc) from a file. With these symbols, you may navigate and/or update the source, because it contains informations like its position. It’s the same info you see in the Outline view, …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@akashsivaram
Comment options

@alefragnani
Comment options

Answer selected by alefragnani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants