mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
Working on hooking up revert properly for custom editors
This commit is contained in:
@@ -273,8 +273,8 @@ export class MainThreadWebviews extends Disposable implements extHostProtocol.Ma
|
||||
|
||||
const model = await this._customEditorService.models.loadOrCreate(webviewInput.getResource(), webviewInput.viewType);
|
||||
|
||||
model.onUndo(edit => { this._proxy.$undoEdits(handle, [edit]); });
|
||||
model.onRedo(edit => { this._proxy.$redoEdits(handle, [edit]); });
|
||||
model.onUndo(edits => { this._proxy.$undoEdits(handle, edits); });
|
||||
model.onRedo(edits => { this._proxy.$redoEdits(handle, edits); });
|
||||
model.onWillSave(e => { e.waitUntil(this._proxy.$onSave(handle)); });
|
||||
|
||||
webviewInput.onDispose(() => {
|
||||
|
||||
Reference in New Issue
Block a user