2024-09-11 02:37:36 +00:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
declare module 'vscode' {
|
2025-03-01 02:01:53 +00:00
|
|
|
export interface TextSearchComplete2 {
|
2024-09-11 02:37:36 +00:00
|
|
|
/**
|
|
|
|
|
* Additional information regarding the state of the completed search.
|
|
|
|
|
*
|
|
|
|
|
* Messages with "Information" style support links in markdown syntax:
|
|
|
|
|
* - Click to [run a command](command:workbench.action.OpenQuickPick)
|
|
|
|
|
* - Click to [open a website](https://aka.ms)
|
|
|
|
|
*
|
|
|
|
|
* Commands may optionally return { triggerSearch: true } to signal to the editor that the original search should run be again.
|
|
|
|
|
*/
|
2025-03-01 02:01:53 +00:00
|
|
|
message?: TextSearchCompleteMessage2[];
|
2024-09-11 02:37:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A message regarding a completed search.
|
|
|
|
|
*/
|
2025-03-01 02:01:53 +00:00
|
|
|
export interface TextSearchCompleteMessage2 {
|
2024-09-11 02:37:36 +00:00
|
|
|
/**
|
|
|
|
|
* Markdown text of the message.
|
|
|
|
|
*/
|
|
|
|
|
text: string;
|
|
|
|
|
/**
|
|
|
|
|
* Whether the source of the message is trusted, command links are disabled for untrusted message sources.
|
|
|
|
|
* Messaged are untrusted by default.
|
|
|
|
|
*/
|
|
|
|
|
trusted?: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* The message type, this affects how the message will be rendered.
|
|
|
|
|
*/
|
|
|
|
|
type: TextSearchCompleteMessageType;
|
|
|
|
|
}
|
|
|
|
|
}
|