mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
Remove extra handler for onDidUpdateState
The current implementation is a noop since we've already updated the state when it is invoked
This commit is contained in:
@@ -318,13 +318,6 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
|
||||
this._webviewEditorInputs.delete(handle);
|
||||
});
|
||||
});
|
||||
input.webview.onDidUpdateState((newState: any) => {
|
||||
const webview = this.tryGetWebviewEditorInput(handle);
|
||||
if (!webview || webview.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
webview.webview.state = newState;
|
||||
});
|
||||
input.webview.onMissingCsp((extension: ExtensionIdentifier) => this._proxy.$onMissingCsp(handle, extension.value));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user