-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Extension activated despite capabilities
flag when virtualWorkspaces
is defined as false
#124594
Comments
@aeschli also assigning to you for the |
When a window contains a virtual workspace, all extensions that have @alefragnani Can you explain more, What is your extension contributing? What are the steps to reproduce the issue. |
Hi @aeschli , You can easily reproduce the issue creating a new extension using the yeoman generator (
I totally understand if you say the extension is being activated because I'm debugging it, but how can I know the capabilities entry is working? Maybe in this case, and also for untrusted workspaces, the debugging session could show a warning message (just like the one displayed when the debug fails with a time out), telling the developer that the extension is not being activated because it does not support virtual / untrusted workspaces.
BTW, I've noticed this issue while adding virtual/untrusted workspaces support to my Read-only Indicator extension. Thank you |
capabilities
flag when virtualWorkspaces
is defined as false
capabilities
flag when virtualWorkspaces
is defined as false
I can reproduce. Thanks for the steps.
Looks like the enablement state is not preventing the extension from being activated. |
Ah, we do this on purpose. The extension under development is never disabled: |
Yeah, just like I was thinking 😬 So, is it something that could be changed on this, in order to properly test/validate if the Thank you |
@sandy081 The current behavior was originally introduced by you in ce01a62 so I would leave it to you. I would argue that the current behavior is OK, but maybe only extensions disabled via user action should be forcefully enabled, while extensions disabled due to capabilities should be left disabled. To implement this, more information is needed from the |
I think current behaviour is OK to run the extension always. I also think giving more priority to capabilities also makes sense. But I am not sure the requested use case - |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
I'm updating an extension to not support virtual workspaces, but it seems the Debug Session does not respect that
capabilities
flag.I mean, I added
"virtualWorkspaces": false
to thecapabilities
property inpackage.json
, but whenever I run a debug session and connect to some Virtual workspace, the extension remains enabled.The only way I could test my extension was packaging and installing the
.vsix
.Is debugging really not supported, or should I open an issue for you to take a look?
Thank you
Originally posted by @alefragnani in #123115 (comment)
The text was updated successfully, but these errors were encountered: