提交 03c52845 编写于 作者: M Matt Bierner

Small formatting cleanup

上级 e2458c2d
...@@ -181,7 +181,6 @@ export class MainThreadWebviewPanels extends Disposable implements extHostProtoc ...@@ -181,7 +181,6 @@ export class MainThreadWebviewPanels extends Disposable implements extHostProtoc
webview.setName(value); webview.setName(value);
} }
public $setIconPath(handle: extHostProtocol.WebviewHandle, value: { light: UriComponents, dark: UriComponents; } | undefined): void { public $setIconPath(handle: extHostProtocol.WebviewHandle, value: { light: UriComponents, dark: UriComponents; } | undefined): void {
const webview = this.getWebviewInput(handle); const webview = this.getWebviewInput(handle);
webview.iconPath = reviveWebviewIcon(value); webview.iconPath = reviveWebviewIcon(value);
...@@ -199,8 +198,7 @@ export class MainThreadWebviewPanels extends Disposable implements extHostProtoc ...@@ -199,8 +198,7 @@ export class MainThreadWebviewPanels extends Disposable implements extHostProtoc
} }
} }
public $registerSerializer(viewType: string) public $registerSerializer(viewType: string): void {
: void {
if (this._revivers.has(viewType)) { if (this._revivers.has(viewType)) {
throw new Error(`Reviver for ${viewType} already registered`); throw new Error(`Reviver for ${viewType} already registered`);
} }
...@@ -216,7 +214,6 @@ export class MainThreadWebviewPanels extends Disposable implements extHostProtoc ...@@ -216,7 +214,6 @@ export class MainThreadWebviewPanels extends Disposable implements extHostProtoc
return; return;
} }
const handle = webviewInput.id; const handle = webviewInput.id;
this.addWebviewInput(handle, webviewInput); this.addWebviewInput(handle, webviewInput);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册