diff --git a/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-contribution.ts b/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-contribution.ts index 25d041d9..489b0cc3 100644 --- a/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-contribution.ts +++ b/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-contribution.ts @@ -1,11 +1,10 @@ -import { injectable, inject, postConstruct } from '@theia/core/shared/inversify'; +import { injectable, inject } from '@theia/core/shared/inversify'; import { CommandRegistry, CommandContribution, MessageService } from '@theia/core'; import { WidgetOpenerOptions, WidgetOpenHandler, KeybindingContribution, - KeybindingRegistry, - OpenWithService + KeybindingRegistry } from '@theia/core/lib/browser'; import URI from '@theia/core/lib/common/uri'; import { TraceViewerWidget, TraceViewerWidgetOptions } from './trace-viewer'; @@ -53,7 +52,6 @@ export class TraceViewerContribution @inject(TracePreferences) protected tracePreferences: TracePreferences; @inject(TraceServerConfigService) protected readonly traceServerConfigService: TraceServerConfigService; @inject(MessageService) protected readonly messageService: MessageService; - @inject(OpenWithService) protected readonly openWithService: OpenWithService; @inject(TraceServerConnectionStatusClient) protected readonly serverStatusService: TraceServerConnectionStatusClient; @@ -68,17 +66,6 @@ export class TraceViewerContribution return this.tracePreferences[TRACE_ARGS]; } - @postConstruct() - protected init(): void { - this.openWithService.registerHandler({ - id: this.id + '-open-with', - label: this.label, - providerName: 'Theia Trace Viewer', - canHandle: (uri: URI) => this.canHandle(uri), - open: (uri: URI) => this.open(uri) - }); - } - protected createWidgetOptions(uri: URI, options?: TraceViewerWidgetOpenerOptions): TraceViewerWidgetOptions { return { traceURI: uri.path.toString(),