Skip to content

Commit

Permalink
Allow custom editor provider methods to be sync
Browse files Browse the repository at this point in the history
For #93852
For #77131
  • Loading branch information
mjbvz committed Mar 31, 2020
1 parent a58a36b commit 92a4758
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vs/vscode.d.ts
Expand Up @@ -6862,7 +6862,7 @@ declare module 'vscode' {
*
* @return Thenable indicating that the custom editor has been resolved.
*/
resolveCustomTextEditor(document: TextDocument, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void>;
resolveCustomTextEditor(document: TextDocument, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void> | void;
}

/**
Expand Down Expand Up @@ -7091,7 +7091,7 @@ declare module 'vscode' {
*
* @return The custom document.
*/
openCustomDocument(uri: Uri, token: CancellationToken): Thenable<CustomDocument<EditType>>;
openCustomDocument(uri: Uri, token: CancellationToken): Thenable<CustomDocument<EditType>> | CustomDocument<EditType>;

/**
* Resolve a custom editor for a given resource.
Expand All @@ -7106,9 +7106,9 @@ declare module 'vscode' {
* @param webviewPanel Webview to resolve.
* @param token A cancellation token that indicates the result is no longer needed.
*
* @return Thenable indicating that the custom editor has been resolved.
* @return Optional thenable indicating that the custom editor has been resolved.
*/
resolveCustomEditor(document: CustomDocument<EditType>, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void>;
resolveCustomEditor(document: CustomDocument<EditType>, webviewPanel: WebviewPanel, token: CancellationToken): Thenable<void> | void;

/**
* Defines the editing capability of the provider.
Expand Down

0 comments on commit 92a4758

Please sign in to comment.