-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
vs.extensions.getExtension(...).extensionKind returns incorrect value of ExtensionKind.UI #8871
Comments
@DanTup thank you for reporting the issue, I believe it is theia/packages/plugin-ext-vscode/src/node/plugin-vscode-init.ts Lines 100 to 110 in 8385768
|
It seems like that might be a bad default (at least for web-based), since in the browser is always a "remote" workspace. UI extensions can only run when the extension host and the UI are in the same place - eg. see "Details about the New Format & Behaviour" table at microsoft/vscode#85819 which shows UI extensions would not run in web. (I'm not sure why I didn't notice this when it was first done, I think it was me that asked for it 🙈) |
@DanTup How do you manage to run your extension in Google Cloud Shell Editor? Can you post a link to an article or gist?
|
@Ark-kun I don't know how official this is, but unpacking them into
Depending on exactly what you want to do there might be a little more to it though. |
If my VS Code extension runs this code (on Cloud Shell):
I get the output
1
, but2
is expected. The description of the enum is:In this case, the extension is running on a remote machine whereas the UI is running in the browser. In Flutter we use this to know whether to enable/disable some features (for example we disabled launching emulators but enable the web-server device).
I had a look in the code to see where this comes from, but was unable to find it.
The text was updated successfully, but these errors were encountered: