@@ -13,7 +13,7 @@ import { EditorViewColumn } from 'vs/workbench/api/common/shared/editor';
1313import { asWebviewUri , WebviewInitData } from 'vs/workbench/api/common/shared/webview' ;
1414import * as vscode from 'vscode' ;
1515import { ExtHostWebviewsShape , IMainContext , MainContext , MainThreadWebviewsShape , WebviewPanelHandle , WebviewPanelViewStateData } from './extHost.protocol' ;
16- import { Disposable , WebviewContentState } from './extHostTypes' ;
16+ import { Disposable } from './extHostTypes' ;
1717
1818type IconPath = URI | { light : URI , dark : URI } ;
1919
@@ -102,9 +102,6 @@ export class ExtHostWebviewEditor implements vscode.WebviewEditor {
102102 private _viewColumn : vscode . ViewColumn | undefined ;
103103 private _visible : boolean = true ;
104104 private _active : boolean = true ;
105- private _state : vscode . WebviewEditorState = {
106- contentState : WebviewContentState . Readonly ,
107- } ;
108105
109106 _isDisposed : boolean = false ;
110107
@@ -224,15 +221,6 @@ export class ExtHostWebviewEditor implements vscode.WebviewEditor {
224221 this . _visible = value ;
225222 }
226223
227- public get editorState ( ) : vscode . WebviewEditorState {
228- return this . _state ;
229- }
230-
231- public set editorState ( newState : vscode . WebviewEditorState ) {
232- this . _state = newState ;
233- this . _proxy . $setState ( this . _handle , typeConverters . WebviewContentState . from ( newState . contentState ) ) ;
234- }
235-
236224 private readonly _onWillSave = new Emitter < { waitUntil : ( thenable : Thenable < boolean > ) => void } > ( ) ;
237225 public readonly onWillSave = this . _onWillSave . event ;
238226
0 commit comments