-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extensions.all API does not return all installed extensions #161563
Comments
We also reproduce it on desktop version vscode sometimes while testing Java extension pack (containing Java extension and other extensions depending on it), only in less-powerful machines. And that's why I decide to open it here instead of vscode-remote. Below are some notes taken by testing team when the error occurred... And from logs we also find that client didn't include corresponding jars in 1st occurrence:
2nd occurrence:
Note, before both occurrences, the user removed some cache folders from %appdata%. Not sure if that's related. |
Update: At the time Java extension calls There is some sort of "race condition" between loading all enabled extensions into Follow-up actions
|
Reading the original issue:
When creating a new Codespace or a new dev container, the VSCode UI (web or desktop) will come up before the remote extensions have finished installing. The extensions will install in parallel with the UI loading. To give a couple of examples when this would happen (cc @sandy081 to double check what I'm describing is correct):
I think this might be the root problem. Perhaps you are reading Could you please change on your side to register the extensions change event at the point when you read |
Does this issue occur when all extensions are disabled?: Yes/No
Context
Java extension allows other extensions to contribute server bundles (plugin of Java Language Server). The client side calls
vscode.extensions.all
to get all enabled extensions and searches forjavaExtensions
definition in packageJSON, and sends to the server.Spring extension depends on Java extension, and provides a server bundle for spring-specific features.
Problem
Original issue: spring-projects/sts4#848
While activating vscode-java extension,
vscode.extension.all
did return a full list of installed extensions, which causes Java LS didn't load all required bundles, resulting to unexpected errors.Steps to Reproduce:
by @martinlippert
Logs
verbose
intialize
request sent to server, you see a list of bundles but those provided by the Spring extension are not included in this run.Ref: how vscode-java extension collect the bundles
Log (Remote Extension Host)
Implementation of command
sts.java.addClasspathListener
is in those provided by the Spring extension. This error is because they are not loaded.The text was updated successfully, but these errors were encountered: