Working on hooking up custom editor saveAs

This commit is contained in:
Matt Bierner
2019-11-22 16:36:01 -08:00
parent d1fab46c13
commit ffe3749d5a
7 changed files with 104 additions and 7 deletions

View File

@@ -276,6 +276,7 @@ export class MainThreadWebviews extends Disposable implements extHostProtocol.Ma
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)); });
model.onWillSaveAs(e => { e.waitUntil(this._proxy.$onSaveAs(handle, e.resource.toJSON(), e.targetResource.toJSON())); });
webviewInput.onDispose(() => {
this._customEditorService.models.disposeModel(model);