-
Notifications
You must be signed in to change notification settings - Fork 33.2k
fix: correctly disable 'Enable (Workspace)' option when already active #251531
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
base: main
Are you sure you want to change the base?
fix: correctly disable 'Enable (Workspace)' option when already active #251531
Conversation
Hi @sandy081, @ultra-000 👋 |
@Subham-KRLX Unfortunately, I am not a decision maker in VS code's repo, so you will have to wait for @sandy081's approval, but I can check your PR when I have free time, and maybe give you some feedback on any unhandled edge cases. |
@Subham-KRLX The builds seems to be red - looks like there is a formatting issue. Please check and fix it. |
Hi @sandy081 👋 Thanks for the feedback earlier — I’ve pushed the updated commit that fixes the formatting issue. Could you please approve the workflows so the checks can run? Also, let me know if you’d like me to rebase with the latest main branch. |
@Subham-KRLX, aside from the formatting issues, your fix seems to suffer from the same issue my fix did, the steps to reproduce the issue are instructed by @sandy081 at my PR's thread: #244419 (comment) |
Hi @ultra-000, If it turns out to have the same issue, I’ll make the necessary adjustments and push the fix accordingly. Really appreciate your input! 🙌 Will update soon. |
Alright, have luck. |
…ent was added (microsoft#251497) * Compute intsructions references when making request, show why attachment was added * remove unused getMetadata
remove preview from mcp setting (microsoft#251617)
…251633) add missing promptEnebled setting checks, add logging
Revert "Remove preview from mcp setting (microsoft#251618)" This reverts commit b2e66f6.
340ed06
to
e35db23
Compare
Hi @sandy081 and @ultra-000, |
Using AI to write your messages? I have felt that there is something odd about your messages, no problem though, maybe you are new at the field, and don't know what to say exactly to effectively deliver your thoughts. Anyway, will make sure to check your updates when I can. |
Yeah, that’s a fair call @ultra-000. I’ve been pretty active with open source lately and trying to contribute wherever I can, so to save time I’ve been using AI to help with some of the wording. Still figuring out how to make it sound more like me, so I appreciate you pointing it out. Always open to feedback — thanks again for checking things out when you get the time. |
Alright @Subham-KRLX, I can tell from the diffs that you didn't change your code, have you probably committed and pushed your changes? |
Hi @sandy081 and @ultra‑000 👋, Thanks again for your feedback—I realized I initially misunderstood the contribution guidelines and formatting expectations. I’ve now corrected the formatting, updated the logic to disable “Enable (Workspace)” when already active, and verified the fix resolves the loop edge case from #244419. I apologize for the confusion and appreciate your patience. |
Hi @sandy081, @ultra-000, just checking in on the review status of this PR. Please let me know if any further changes are needed. |
@Subham-KRLX, I guess I am stepping back a bit and will leave this to @sandy081, sorry. |
@sandy081, @ultra-000 thanks again for all your guidance and patience throughout this process! The codebase is a bit large and complex and I had greatly appreciate if someone could take a moment to help debug and clean up the remaining errors. Thank you! |
Description
Fixes a bug where the 'Enable (Workspace)' action remained enabled even when the extension was already enabled for the workspace. This led to confusion as users could repeatedly trigger the same action unnecessarily.
Updated the
update()
method of theEnableForWorkspaceAction
class to add a check forextension.enablementState !== EnablementState.EnabledWorkspace
.Related Issue
Fixes: #244138
Changes Made
src/vs/workbench/contrib/extensions/browser/extensionsActions.ts
EnableForWorkspaceAction
→update()
method logicSteps to Reproduce the Fix