1. 16 10月, 2019 2 次提交
  2. 11 10月, 2019 1 次提交
  3. 04 10月, 2019 1 次提交
  4. 02 10月, 2019 1 次提交
  5. 27 9月, 2019 1 次提交
    • M
      Move webview content state into webviewPanel instead of webviewEditor · e0762af2
      Matt Bierner 提交于
      Split out from #77131
      
      The current webview editor api is very procedural. This model has some problems when it comes to supporting editing resources, but actually does make a lot of sense for webviews that aren't backed by real file system resources. For example, if you have a webview that edits some document in the cloud, you should not be required to implement a custom file system provider just to enable basic saving.
      
      This change moves the `onWillSave` and `webviewEditorState` properties back onto `WebviewPanel` instead of keeping them specific to `WebviewEditor`. The save implementation does not fully work yet, as the will require #81521
      e0762af2
  6. 26 9月, 2019 2 次提交
  7. 24 9月, 2019 2 次提交
  8. 20 9月, 2019 1 次提交
  9. 16 9月, 2019 1 次提交
  10. 14 9月, 2019 4 次提交
  11. 13 9月, 2019 1 次提交
  12. 12 9月, 2019 1 次提交
  13. 11 9月, 2019 2 次提交
    • M
      2d3727b3
    • M
      Prototyping custom editors (#77789) · 011836a1
      Matt Bierner 提交于
      * Custom Editor exploration
      
      For #77131
      
      Adds a prototype of custom editors contributed by extensions. This change does the following:
      
      - Introduces a new contribution point for the declarative parts of a custom editor
      - Adds API for registering a webview editor provider. This lets VS Code decided when to create a webview editor
      - Adds an `openWith` command that lets you select which editor to use to open a resource from the file explorer
      - Adds a setting that lets you say that you always want to use a custom editor for a given file extension
      - Hooks up auto opening of a custom editor when opening a file from quick open or explorer
      - Adds a new extension that contributes a custom image preview for png and jpg files
      
      Still needs a lot of UX work and testing. We are also going to explore a more generic "open handler" based approach for supporting custom editors
      
      Revert
      
      * Re-use existing custom editor if one is already open
      
      * Don't re-create custom editor webview when clicking on already visible custom editor
      
      * Move customEditorInput to own file
      
      * First draft of serializing custom editor inputs
      
      * Use glob patterns instead of simple file extensions for matching custom resoruces for custom editors
      
      * Add descriptions
      
      * Try opening standard editor while prompting for custom editor
      
      * Make sure we hide image status on dispose
      
      * Make sure we restore editor group too
      
      * Use glob patterns for workbench.editor.custom
      
      * Allow users to configure custom editors for additional file types
      
      * Use filename glob instead of glob on full resource path
      
      * Adding placeholder for prompt open with
      
      * Add enableByDefault setting for editor contributions
      
      * Enable custom editors by default and add `discretion` enum
      
      Changes `enableByDefault` boolean to a `discretion` enum. This should give more flexibility if we want other options (such as forcing a given custom editor to always be used even if there are other default ones)
      
      * Allow custom editors to specify both a scheme and filenamePattern they are active for
      
      * Rework custom editor setting
      
      * Don't allow custom editors to be enabled for all resources by a config mistake
      
      * Replace built-in image editor with one from extension
      
      * Adding reopen with command
      
      * Improve comment
      
      * Remove commented code
      
      * Localize package.json and remove image
      
      * Remove extra lib setting from tsconfig
      011836a1
  14. 27 8月, 2019 2 次提交
  15. 22 8月, 2019 2 次提交
  16. 21 8月, 2019 6 次提交
  17. 20 8月, 2019 1 次提交
  18. 15 8月, 2019 2 次提交
  19. 23 7月, 2019 1 次提交
  20. 18 7月, 2019 4 次提交
    • M
      Rewrite how webviews are managed internally · 928ae464
      Matt Bierner 提交于
      This change attempts to do the following:
      
      - Encapsult most of the logic for handling the webviews used for webview editors into a new WebviewEditorOverlay class
      - Greatly simplify WebviewEditorInput and make it take a webview when it is created
      - Move the webview creation logic up into the webviewEditorService instead of having it be inside the webviewEditor class itself
      
      This aim of these changes is to make it possible to re-use more of the webview logic for custom editors
      928ae464
    • M
      Simplify state used for webviews · 8b69b981
      Matt Bierner 提交于
      We previously used nested states to store some additional metadata alongside the real webview state. This is overly complicated. This change switches us to using a single top level state field, while also adding some code to handle migration from the old state structure
      8b69b981
    • M
      Don't require using state to check if we can revive · 46294799
      Matt Bierner 提交于
      46294799
    • M
      Mark that state may be undefined · e26db506
      Matt Bierner 提交于
      e26db506
  21. 13 7月, 2019 1 次提交
    • M
      Support loading webviews from wildcard endpoints · 5106b556
      Matt Bierner 提交于
      Fixes #77132
      
      Add support for loading webviews from and endpoint that looks like:
      
      ```
      https://{{uuid}}.contoso.com/path/to/some/commit/index.html
      ```
      
      This lets us serve each webview from a seperate origin
      5106b556
  22. 11 7月, 2019 1 次提交