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 Johannes Rieken (@jrieken)
vscode.extensions.allorvscode.extensions.getExtensionwill only return extensions from the current extension host. The root cause for this is that the return typeIExtension<T>exposes the.exportsproperty, 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.getExtensionreturn 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 Johannes Rieken (@jrieken)