Skip to content

Commit 0e40ac1

Browse files
jonahgrahambhufmann
authored andcommitted
Remove unneeded TraceViewerWidgetOpenerOptions
1 parent 1c6babd commit 0e40ac1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-commands.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ export const OpenTraceWithRootPathCommand: Command = {
3333
/**
3434
* A command to open a trace in the trace viewer.
3535
*
36-
* The command takes two parameters:
36+
* The command takes a parameter:
3737
*
3838
* path: a string containing the path to a trace
39-
* options: an optional TraceViewerWidgetOpenerOptions
4039
*/
4140
export const OpenTraceWithPathCommand: Command = {
4241
id: 'open-trace-with-path',

theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer-contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class TraceViewerContribution extends WidgetOpenHandler<TraceViewerWidget
188188
});
189189
registry.registerCommand(OpenTraceWithPathCommand, {
190190
isVisible: () => false,
191-
execute: (path: string, options: TraceViewerWidgetOpenerOptions) => path && this.open(new URI(path), options),
191+
execute: (path: string) => path && this.open(new URI(path)),
192192
});
193193
registry.registerCommand(OpenTraceWithRootPathCommand, {
194194
isVisible: () => false,

0 commit comments

Comments
 (0)