diff --git a/src/vs/workbench/api/common/extHostTypeConverters.ts b/src/vs/workbench/api/common/extHostTypeConverters.ts index 48da096d566..dfce55ade92 100644 --- a/src/vs/workbench/api/common/extHostTypeConverters.ts +++ b/src/vs/workbench/api/common/extHostTypeConverters.ts @@ -1163,13 +1163,3 @@ export namespace LogLevel { return types.LogLevel.Info; } } -export namespace WebviewContentState { - export function from(state: vscode.WebviewContentState): modes.WebviewContentState { - switch (state) { - case types.WebviewContentState.Readonly: return modes.WebviewContentState.Readonly; - case types.WebviewContentState.Unchanged: return modes.WebviewContentState.Unchanged; - case types.WebviewContentState.Dirty: return modes.WebviewContentState.Dirty; - default: throw new Error('Unknown vscode.WebviewContentState'); - } - } -} diff --git a/src/vs/workbench/api/common/extHostWebview.ts b/src/vs/workbench/api/common/extHostWebview.ts index 70395b6f301..763f79dc5f6 100644 --- a/src/vs/workbench/api/common/extHostWebview.ts +++ b/src/vs/workbench/api/common/extHostWebview.ts @@ -13,7 +13,7 @@ import { EditorViewColumn } from 'vs/workbench/api/common/shared/editor'; import { asWebviewUri, WebviewInitData } from 'vs/workbench/api/common/shared/webview'; import * as vscode from 'vscode'; import { ExtHostWebviewsShape, IMainContext, MainContext, MainThreadWebviewsShape, WebviewPanelHandle, WebviewPanelViewStateData } from './extHost.protocol'; -import { Disposable, WebviewContentState } from './extHostTypes'; +import { Disposable } from './extHostTypes'; type IconPath = URI | { light: URI, dark: URI }; @@ -102,9 +102,6 @@ export class ExtHostWebviewEditor implements vscode.WebviewEditor { private _viewColumn: vscode.ViewColumn | undefined; private _visible: boolean = true; private _active: boolean = true; - private _state: vscode.WebviewEditorState = { - contentState: WebviewContentState.Readonly, - }; _isDisposed: boolean = false; @@ -224,15 +221,6 @@ export class ExtHostWebviewEditor implements vscode.WebviewEditor { this._visible = value; } - public get editorState(): vscode.WebviewEditorState { - return this._state; - } - - public set editorState(newState: vscode.WebviewEditorState) { - this._state = newState; - this._proxy.$setState(this._handle, typeConverters.WebviewContentState.from(newState.contentState)); - } - private readonly _onWillSave = new Emitter<{ waitUntil: (thenable: Thenable) => void }>(); public readonly onWillSave = this._onWillSave.event;