提交 8f41818f 编写于 作者: M Matt Bierner

Rename template param to T

For #95852
上级 5d4f4071
......@@ -1419,9 +1419,9 @@ declare module 'vscode' {
* You should use this type of custom editor when dealing with binary files or more complex scenarios. For simple
* text based documents, use [`CustomTextEditorProvider`](#CustomTextEditorProvider) instead.
*
* @param DocumentType Type of the custom document returned by this provider.
* @param T Type of the custom document returned by this provider.
*/
export interface CustomEditorProvider<DocumentType extends CustomDocument = CustomDocument> {
export interface CustomEditorProvider<T extends CustomDocument = CustomDocument> {
/**
* Create a new document for a given resource.
......@@ -1437,7 +1437,7 @@ declare module 'vscode' {
*
* @return The custom document.
*/
openCustomDocument(uri: Uri, openContext: OpenCustomDocumentContext, token: CancellationToken): Thenable<DocumentType> | DocumentType;
openCustomDocument(uri: Uri, openContext: OpenCustomDocumentContext, token: CancellationToken): Thenable<T> | T;
/**
* Resolve a custom editor for a given resource.
......@@ -1454,7 +1454,7 @@ declare module 'vscode' {
*
* @return Optional thenable indicating that the custom editor has been resolved.
*/
resolveCustomEditor(document: DocumentType, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void> | void;
resolveCustomEditor(document: T, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void> | void;
}
namespace window {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册