1. 13 3月, 2020 1 次提交
    • M
      Use the UndoRedoService for CustomEditors (#92408) · 3ef02fe7
      Matt Bierner 提交于
      * Use the UndoRedoService for CustomEditors
      
      For #90110
      
      Changes custom editors (the ones not based on text) to use the UndoRedoService. This involved:
      
      - Moving edit lifecycle back into the main process again (this is actually the bulk of the changes)
      - Removing the `undo`/`redo` methods on  `CustomEditorModel`
      - Using the undoRedoService to trigger undo/redo
      3ef02fe7
  2. 03 3月, 2020 1 次提交
    • M
      Rework management of custom editor custom models · 44c76bd3
      Matt Bierner 提交于
      Fixes #91670
      
      - Move model type logic out of `CustomEditorInput` and into two different implementations of `ICustomEditorModel`
      - Add `CustomTextEditorModel` that owns a proper model reference to a text document. This should ensure the text document is disposed of if there are no more references to it
      - Move most of the previous `CustomEditorModel` into `mainThreadWebviews` directly. This removes some of the indirection that was previously required (such as using `waitUntil`)
      44c76bd3