Skip to content

Commit 8f41818

Browse files
committed
Rename template param to T
For microsoft#95852
1 parent 5d4f407 commit 8f41818

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,9 +1419,9 @@ declare module 'vscode' {
14191419
* You should use this type of custom editor when dealing with binary files or more complex scenarios. For simple
14201420
* text based documents, use [`CustomTextEditorProvider`](#CustomTextEditorProvider) instead.
14211421
*
1422-
* @param DocumentType Type of the custom document returned by this provider.
1422+
* @param T Type of the custom document returned by this provider.
14231423
*/
1424-
export interface CustomEditorProvider<DocumentType extends CustomDocument = CustomDocument> {
1424+
export interface CustomEditorProvider<T extends CustomDocument = CustomDocument> {
14251425

14261426
/**
14271427
* Create a new document for a given resource.
@@ -1437,7 +1437,7 @@ declare module 'vscode' {
14371437
*
14381438
* @return The custom document.
14391439
*/
1440-
openCustomDocument(uri: Uri, openContext: OpenCustomDocumentContext, token: CancellationToken): Thenable<DocumentType> | DocumentType;
1440+
openCustomDocument(uri: Uri, openContext: OpenCustomDocumentContext, token: CancellationToken): Thenable<T> | T;
14411441

14421442
/**
14431443
* Resolve a custom editor for a given resource.
@@ -1454,7 +1454,7 @@ declare module 'vscode' {
14541454
*
14551455
* @return Optional thenable indicating that the custom editor has been resolved.
14561456
*/
1457-
resolveCustomEditor(document: DocumentType, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void> | void;
1457+
resolveCustomEditor(document: T, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void> | void;
14581458
}
14591459

14601460
namespace window {

0 commit comments

Comments
 (0)