Command to open the quick pick interface for jumping to chat segments. This command is bound to the "browsechat.jumpToChat" command ID. The command is registered in the extension context and can be triggered from the command palette. It also registers a keyboard shortcut for the same command. The command uses a QuickPick interface to allow the user to search for and select a chat segment. When the user selects a segment, the command navigates to the segment in the chat browser. registerCommand(): Registers the "browsechat.jumpToChat" command and its associated keyboard shortcut. createQuickPick(): Creates a QuickPick that allows the user to search for and select a chat segment. execute(): Executes the Jump to Chat command, showing the quick pick interface to allow the user to search for and select a chat segment. loadSegments(): Loads all chat segments into the QuickPick, updating the items that represent each segment. createQuickPickItem(segment, sequence): Creates a QuickPickSegmentItem for the given chat segment and sequence. getSegmentPreview(segment): Returns a preview of the content of a chat segment, truncating it if necessary. getSegmentDetail(segment): Returns a string that lists the participants and keywords of the given chat segment. handleQuickPickValueChange(value): Handles changes to the QuickPick's value by filtering the items that are visible. handleQuickPickAccept(): Handles the QuickPick's accept event by navigating to the selected segment. handleQuickPickButton(item, button): Handles the QuickPick's button click event, showing a preview of the segment content if the "Preview segment" button is clicked. dispose(): Disposes of the QuickPick when it is no longer needed.

Constructors

Methods

Constructors

Methods

  • Disposes the QuickPick and all its associated resources. This should be called when the command is no longer needed.

    Returns void

  • Executes the Jump to Chat command. Shows the quick pick interface to allow the user to search for and select a chat segment. If the user selects a segment, the handleQuickPickAccept method is called.

    Returns Promise<void>

    A promise that resolves when the command is finished executing.