question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get all classes from language server?

See original GitHub issue

For example, can an extension ask language server to provide available MXML and AS classes? There is commands.executeCommand('vscode.executeWorkspaceSymbolProvider', ''); to get symbols from local project, but how to get all available symbols from SDK?

I am considering adding few commands to Flex Snippets like:

  • initialize project in empty folder
  • create new component

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Jun 7, 2018

I just checked, and TypeScript includes symbols from its core library in the workspace symbols result. I’ll make sure to update AS3 & MXML to include SDK symbols to match this behavior.

0reactions
neminovnocommented, Jun 8, 2018

but I think that isActive changes from false to true before everything is actually ready.

Correct, after adding extension dependency in package.json, and checking isActive, it is still early to call.

Don’t forget that when classes are created or deleted in the project, your preloaded list might be out of sync. It’s probably better to request symbols in real-time, just like VSCode does.

Thanks on note. It takes some time now - not good for UI and work flow, but I just started playing with it, probably some optimal solution will come in way. Maybe keeping project’s classes in separate array for quicker update, then concatenate before showQuickPick.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using A Language Server To Find All Functions Within a scope
I'm working on a VSCode extension and for one of the key features, I need to go to the main scope (the code...
Read more >
Language Server Extension Guide - Visual Studio Code
But there is more to language servers. They can provide code completion, Find All References, or Go To Definition. The example code below...
Read more >
Implementing a Language Server…How Hard Can It Be??
The 1st DIY method is a bit hard because you have to do all by your self. ... We have implemented above three...
Read more >
phpactor/language-server - GitHub
Up-to-date and self-instantiating protocol classes. See the Language Server Specification for a list of methods which you can implement with this package.
Read more >
Language Server Protocol Specification - 3.17
This document describes the 3.17.x version of the language server protocol. An implementation for node of the 3.17.x version of the protocol can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found