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.

Add a way to read all enabled extensions across all extension hosts

See original GitHub issue

vscode.extensions.all or vscode.extensions.getExtension will only return extensions from the current extension host. The root cause for this is that the return type IExtension<T> exposes the .exports property, which represents the extension’s exported API. Since extensions can export synchronous APIs, we can’t automatically proxy it to make it available to other extension hosts.

Also, making vscode.extensions.getExtension return an extension running on a different extension host, has the potential to cause breakage in existing extensions.

We could add a new function to be able to get to extensions that are running on other extension hosts.

This came up before e.g. in #82633

cc @jrieken

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aeschlicommented, Apr 6, 2022

The main motivation for me is to get access to the manifests of all extensions across extension hosts to find contributions such as jsonValidation.

The same issue came up with the new anycode contributions and the htmlLanguage contribution were exploring in #146731.

0reactions
DanTupcommented, Aug 26, 2022

@jrieken perfect, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome Extensions: declare permissions and warn users
Grants the extension access to all hosts. It may be possible to avoid declaring any host permissions by using the activeTab permission. Read...
Read more >
Use group policies to manage Microsoft Edge extensions
Open the group policy management editor and go to Administrative Templates > Microsoft Edge > Extensions and then select Configure extension ...
Read more >
Unified Extensions Button and how to handle permissions in ...
The button panel will display the user's installed and enabled extensions and their current permission state. In addition to managing host ...
Read more >
Set Chrome app and extension policies (Windows)
You can also control which apps or extensions users can install. You set the default policies for all apps and extensions. Then, if...
Read more >
Deploying Google Chrome extensions using Group Policy
At the very least, you will be able to test the extension before deploying it to your users and you can check if...
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