Merge from vscode 313ede61cbad8f9dc748907b3384e059ddddb79a (#7436)

* Merge from vscode 313ede61cbad8f9dc748907b3384e059ddddb79a

* fix strict null checks
This commit is contained in:
Anthony Dresser
2019-09-30 23:35:45 -07:00
committed by GitHub
parent 6ab03053a0
commit 084524cd2d
196 changed files with 2927 additions and 2547 deletions

View File

@@ -1085,45 +1085,7 @@ declare module 'vscode' {
//#region Custom editors, mjbvz
export enum WebviewContentState {
/**
* The webview content cannot be modified.
*
* This disables save.
*/
Readonly = 1,
/**
* The webview content has not been changed but they can be modified and saved.
*/
Unchanged = 2,
/**
* The webview content has been changed and can be saved.
*/
Dirty = 3,
}
export interface WebviewEditorState {
readonly contentState: WebviewContentState;
}
export interface WebviewPanel {
editorState: WebviewEditorState;
/**
* Fired when the webview is being saved.
*
* Both `Unchanged` and `Dirty` editors can be saved.
*
* Extensions should call `waitUntil` to signal when the save operation complete
*/
readonly onWillSave: Event<{ waitUntil: (thenable: Thenable<boolean>) => void }>;
}
export interface WebviewEditor extends WebviewPanel {
// TODO: We likely do not want `editorState` and `onWillSave` enabled for
// resource backed webviews
}
export interface WebviewEditorProvider {
@@ -1168,7 +1130,7 @@ declare module 'vscode' {
*
* @return A uri that can be used on the client machine.
*/
export function resolveExternalUri(target: Uri): Thenable<Uri>;
export function asExternalUri(target: Uri): Thenable<Uri>;
}
//#endregion