From 0e40ac19aec2e11bdeb44a09bfc7ce558b8a2c6b Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Tue, 13 Dec 2022 14:57:40 -0500 Subject: [PATCH] Remove unneeded TraceViewerWidgetOpenerOptions --- .../src/browser/trace-viewer/trace-viewer-commands.ts | 3 +-- .../src/browser/trace-viewer/trace-viewer-contribution.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-commands.ts b/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-commands.ts index 34b880386..058d7c7b8 100644 --- a/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-commands.ts +++ b/theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-commands.ts @@ -33,10 +33,9 @@ export const OpenTraceWithRootPathCommand: Command = { /** * A command to open a trace in the trace viewer. * - * The command takes two parameters: + * The command takes a parameter: * * path: a string containing the path to a trace - * options: an optional TraceViewerWidgetOpenerOptions */ export const OpenTraceWithPathCommand: Command = { id: 'open-trace-with-path', 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 9436bc5f9..3dfef982b 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 @@ -188,7 +188,7 @@ export class TraceViewerContribution extends WidgetOpenHandler false, - execute: (path: string, options: TraceViewerWidgetOpenerOptions) => path && this.open(new URI(path), options), + execute: (path: string) => path && this.open(new URI(path)), }); registry.registerCommand(OpenTraceWithRootPathCommand, { isVisible: () => false,