Skip to content

Can I access a language client registered by an extension? #483

Closed Answered by CGNonofr
invm asked this question in Q&A
Discussion options

You must be logged in to vote

But instead of running the LSP request directly, you can probably do it via the VSCode api:

const symbols = await vscode.commands.executeCommand(
  'vscode.executeDocumentSymbolProvider',
  vscode.Uri.parse('file:///workspace/resources.tf')
) as vscode.DocumentSymbol[];

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@invm
Comment options

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