mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
31 lines
1019 B
TypeScript
31 lines
1019 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* 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' {
|
|
|
|
/**
|
|
* Detailed information about why a text document changed.
|
|
*/
|
|
export interface TextDocumentDetailedChangeReason {
|
|
/**
|
|
* The source of the change (e.g., 'inline-completion', 'chat-edit', 'extension')
|
|
*/
|
|
readonly source: string;
|
|
|
|
/**
|
|
* Additional context-specific metadata
|
|
*/
|
|
readonly metadata: { readonly [key: string]: any };
|
|
}
|
|
|
|
export interface TextDocumentChangeEvent {
|
|
/**
|
|
* The precise reason for the document change.
|
|
* Only available to extensions that have enabled the `textDocumentChangeReason` proposed API.
|
|
*/
|
|
readonly detailedReason: TextDocumentDetailedChangeReason | undefined;
|
|
}
|
|
}
|