Use chaining

This commit is contained in:
Matt Bierner
2019-11-21 15:48:16 -08:00
parent f775aea9ad
commit 7d120c2d3e

View File

@@ -449,18 +449,12 @@ export class ExtHostWebviews implements ExtHostWebviewsShape {
$undoEdits(handle: WebviewPanelHandle, edits: string[]): void {
const panel = this.getWebviewPanel(handle);
if (!panel) {
return;
}
panel._undoEdits(edits);
panel?._undoEdits(edits);
}
$redoEdits(handle: WebviewPanelHandle, edits: string[]): void {
const panel = this.getWebviewPanel(handle);
if (!panel) {
return;
}
panel._redoEdits(edits);
panel?._redoEdits(edits);
}
async $onSave(handle: WebviewPanelHandle): Promise<void> {