Skip to content

Commit

Permalink
Remove unneeded TraceViewerWidgetOpenerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham authored and bhufmann committed Dec 13, 2022
1 parent 1c6babd commit 0e40ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class TraceViewerContribution extends WidgetOpenHandler<TraceViewerWidget
});
registry.registerCommand(OpenTraceWithPathCommand, {
isVisible: () => 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,
Expand Down

0 comments on commit 0e40ac1

Please sign in to comment.