Adding concept of a state for webview editors

#77131

This information will be used to show the dirty indicator and also enable/disable save
This commit is contained in:
Matt Bierner
2019-09-11 23:37:53 -07:00
parent feb3936ff1
commit 7a219ab632
9 changed files with 74 additions and 9 deletions

View File

@@ -540,6 +540,7 @@ export interface MainThreadWebviewsShape extends IDisposable {
$disposeWebview(handle: WebviewPanelHandle): void;
$reveal(handle: WebviewPanelHandle, showOptions: WebviewPanelShowOptions): void;
$setTitle(handle: WebviewPanelHandle, value: string): void;
$setState(handle: WebviewPanelHandle, state: modes.WebviewEditorState): void;
$setIconPath(handle: WebviewPanelHandle, value: { light: UriComponents, dark: UriComponents } | undefined): void;
$setHtml(handle: WebviewPanelHandle, value: string): void;