mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Rename
This commit is contained in:
@@ -13,7 +13,7 @@ import { IWebviewViewService, WebviewView } from 'vs/workbench/contrib/webviewVi
|
||||
|
||||
export class MainThreadWebviewsViews extends Disposable implements extHostProtocol.MainThreadWebviewViewsShape {
|
||||
|
||||
private readonly _proxyViews: extHostProtocol.ExtHostWebviewViewsShape;
|
||||
private readonly _proxy: extHostProtocol.ExtHostWebviewViewsShape;
|
||||
|
||||
private readonly _webviewViews = new Map<string, WebviewView>();
|
||||
private readonly _webviewViewProviders = new Map<string, IDisposable>();
|
||||
@@ -25,7 +25,7 @@ export class MainThreadWebviewsViews extends Disposable implements extHostProtoc
|
||||
) {
|
||||
super();
|
||||
|
||||
this._proxyViews = context.getProxy(extHostProtocol.ExtHostContext.ExtHostWebviewViews);
|
||||
this._proxy = context.getProxy(extHostProtocol.ExtHostContext.ExtHostWebviewViews);
|
||||
}
|
||||
|
||||
public $setWebviewViewTitle(handle: extHostProtocol.WebviewHandle, value: string | undefined): void {
|
||||
@@ -62,16 +62,16 @@ export class MainThreadWebviewsViews extends Disposable implements extHostProtoc
|
||||
}
|
||||
|
||||
webviewView.onDidChangeVisibility(visible => {
|
||||
this._proxyViews.$onDidChangeWebviewViewVisibility(handle, visible);
|
||||
this._proxy.$onDidChangeWebviewViewVisibility(handle, visible);
|
||||
});
|
||||
|
||||
webviewView.onDispose(() => {
|
||||
this._proxyViews.$disposeWebviewView(handle);
|
||||
this._proxy.$disposeWebviewView(handle);
|
||||
this._webviewViews.delete(handle);
|
||||
});
|
||||
|
||||
try {
|
||||
await this._proxyViews.$resolveWebviewView(handle, viewType, state, cancellation);
|
||||
await this._proxy.$resolveWebviewView(handle, viewType, state, cancellation);
|
||||
} catch (error) {
|
||||
onUnexpectedError(error);
|
||||
webviewView.webview.html = this.mainThreadWebviews.getWebviewResolvedFailedContent(viewType);
|
||||
|
||||
Reference in New Issue
Block a user