Skip to content

Commit

Permalink
Removed usage of Theia platform 'open-with' service
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Sep 25, 2024
1 parent d7507cf commit 1eabed7
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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;

Expand All @@ -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(),
Expand Down

0 comments on commit 1eabed7

Please sign in to comment.