Skip to content

Commit e166dae

Browse files
author
Loïc Mangeonjean
committed
fix: remove "manage extension" notif button
1 parent f44d554 commit e166dae

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

scripts/vscode.patch

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,42 @@ index cbddc0c233b..931ce877ff6 100644
297297
}
298298

299299
class ExtensionHostProxy implements IExtensionHostProxy {
300+
diff --git a/src/vs/workbench/api/browser/mainThreadMessageService.ts b/src/vs/workbench/api/browser/mainThreadMessageService.ts
301+
index 43ee94f3893..7c265cd7752 100644
302+
--- a/src/vs/workbench/api/browser/mainThreadMessageService.ts
303+
+++ b/src/vs/workbench/api/browser/mainThreadMessageService.ts
304+
@@ -11,7 +11,6 @@ import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/ext
305+
import { IDialogService, IPromptButton } from 'vs/platform/dialogs/common/dialogs';
306+
import { INotificationService } from 'vs/platform/notification/common/notification';
307+
import { Event } from 'vs/base/common/event';
308+
-import { ICommandService } from 'vs/platform/commands/common/commands';
309+
310+
@extHostNamedCustomer(MainContext.MainThreadMessageService)
311+
export class MainThreadMessageService implements MainThreadMessageServiceShape {
312+
@@ -19,7 +18,6 @@ export class MainThreadMessageService implements MainThreadMessageServiceShape {
313+
constructor(
314+
extHostContext: IExtHostContext,
315+
@INotificationService private readonly _notificationService: INotificationService,
316+
- @ICommandService private readonly _commandService: ICommandService,
317+
@IDialogService private readonly _dialogService: IDialogService
318+
) {
319+
//
320+
@@ -64,15 +62,6 @@ export class MainThreadMessageService implements MainThreadMessageServiceShape {
321+
}
322+
323+
const secondaryActions: IAction[] = [];
324+
- if (options.source) {
325+
- secondaryActions.push(toAction({
326+
- id: options.source.identifier.value,
327+
- label: nls.localize('manageExtension', "Manage Extension"),
328+
- run: () => {
329+
- return this._commandService.executeCommand('_extensions.manage', options.source!.identifier.value);
330+
- }
331+
- }));
332+
- }
333+
334+
const messageHandle = this._notificationService.notify({
335+
severity,
300336
diff --git a/src/vs/workbench/api/browser/statusBarExtensionPoint.ts b/src/vs/workbench/api/browser/statusBarExtensionPoint.ts
301337
index cd2e439f8f6..fcdc9a28ce2 100644
302338
--- a/src/vs/workbench/api/browser/statusBarExtensionPoint.ts

0 commit comments

Comments
 (0)