-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize registerTerminalLinkHandler API
Fixes #91606
- Loading branch information
Showing
3 changed files
with
17 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7622,6 +7622,13 @@ declare module 'vscode' { | |
*/ | ||
export function createTerminal(options: ExtensionTerminalOptions): Terminal; | ||
|
||
/** | ||
* Register a [TerminalLinkHandler](#TerminalLinkHandler) that can be used to intercept and | ||
* handle links that are activated within terminals. | ||
* @param handler The link handler being registered. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jrieken
Member
|
||
*/ | ||
export function registerTerminalLinkHandler(handler: TerminalLinkHandler): Disposable; | ||
|
||
/** | ||
* Register a [TreeDataProvider](#TreeDataProvider) for the view contributed using the extension point `views`. | ||
* This will allow you to contribute data to the [TreeView](#TreeView) and update if the data changes. | ||
|
@@ -8182,6 +8189,16 @@ declare module 'vscode' { | |
readonly code: number | undefined; | ||
} | ||
|
||
export interface TerminalLinkHandler { | ||
This comment has been minimized.
Sorry, something went wrong.
jrieken
Member
|
||
/** | ||
* Handles a link that is activated within the terminal. | ||
* | ||
* @return Whether the link was handled, if the link was handled this link will not be | ||
* considered by any other extension or by the default built-in link handler. | ||
*/ | ||
handleLink(terminal: Terminal, link: string): ProviderResult<boolean>; | ||
} | ||
|
||
/** | ||
* A location in the editor at which progress information can be shown. It depends on the | ||
* location how progress is visually represented. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Tyriar incomplete jsdoc, misses
@return
, please copy&paste the test from somewhere