Skip to content

Conversation

@murataslan1
Copy link
Contributor

Summary

When an extension is disabled from the Running Extensions view context menu, the user was not notified that extensions need to be restarted for the change to take effect. This was inconsistent with the Extensions view behavior.

Changes

Added a notification with a 'Restart Extensions' button that appears after disabling an extension from the Running Extensions view. This matches the behavior of the main Extensions view.

Modified File

  • src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.ts

Before

  1. Go to Running Extensions (Developer: Show Running Extensions)
  2. Right-click on an extension → Disable
  3. No notification appears, user doesn't know a restart is needed

After

  1. Go to Running Extensions
  2. Right-click on an extension → Disable
  3. A notification appears: "The extension has been disabled. Please restart extensions to apply the change."
  4. User can click "Restart Extensions" button to apply immediately

Fixes #250201

… Extensions view

When an extension is disabled from the Running Extensions view context menu,
the user was not notified that extensions need to be restarted for the change
to take effect. This was inconsistent with the Extensions view behavior.

Now, a notification is shown with a 'Restart Extensions' button that allows
the user to restart extensions immediately and apply the change.

Fixes microsoft#250201
Copilot AI review requested due to automatic review settings January 2, 2026 07:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a missing notification when disabling extensions from the Running Extensions view. Previously, users were not notified that extensions need to be restarted for the change to take effect, creating an inconsistency with the main Extensions view behavior.

Key Changes:

  • Added notification prompts with "Restart Extensions" button after disabling extensions from the Running Extensions view context menu
  • Ensures users are informed that a restart is needed to apply the disablement

Comment on lines +492 to +510
this._notificationService.prompt(
Severity.Info,
nls.localize('restartExtensionsRequired', "The extension has been disabled. Please restart extensions to apply the change."),
[{
label: nls.localize('restartExtensions', "Restart Extensions"),
run: () => this._extensionsWorkbenchService.updateRunningExtensions()
}]
);
}));
actions.push(new Action('runtimeExtensionsEditor.action.disable', nls.localize('disable', "Disable"), undefined, true, async () => {
await this._extensionsWorkbenchService.setEnablement(e.element!.marketplaceInfo!, EnablementState.DisabledGlobally);
this._notificationService.prompt(
Severity.Info,
nls.localize('restartExtensionsRequired', "The extension has been disabled. Please restart extensions to apply the change."),
[{
label: nls.localize('restartExtensions', "Restart Extensions"),
run: () => this._extensionsWorkbenchService.updateRunningExtensions()
}]
);
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The notification code is duplicated in both the "Disable (Workspace)" and "Disable" actions. Consider extracting this into a helper function to reduce duplication and improve maintainability. For example, create a private method that shows the notification and call it from both actions.

Copilot uses AI. Check for mistakes.
@sandy081
Copy link
Member

sandy081 commented Jan 4, 2026

Closing this PR because the associated feature request is closed

@sandy081 sandy081 closed this Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restart Extensions button not created when disabling extensions from Running Extensions view

2 participants