Commit Graph

9 Commits

Author SHA1 Message Date
Matt Bierner
2d1f6d422b Add localResourceRoots to webview options
Fixes #44039

Add a new option that lets extensions override which root folders a webview can load local resources from. Defaults to allowing any resource in the workspace
2018-02-21 14:05:47 -08:00
Matt Bierner
966aeb0c7e Move useSameOriginForRoot into options 2018-02-21 14:05:47 -08:00
Matt Bierner
c7da9389d5 Move theme change logic into webview itself 2018-02-21 11:57:01 -08:00
Matt Bierner
5eeed6d275 Move layout and focus ot base class 2018-02-21 11:57:01 -08:00
Matt Bierner
508366e3fc Fix null deref when activeEditor is undefined
Fixes #44009
2018-02-20 11:18:27 -08:00
Matt Bierner
70b41f0b2d Use onEditorsChanged to fire webview onBecameActive and onBecameInactive
Fixes #43775
Fixes #43776
2018-02-15 11:07:06 -08:00
Matt Bierner
57c65e2e17 Don't use default export for webview 2018-02-15 10:25:45 -08:00
Matt Bierner
493651d6ce Make webview.contents a string instead of an array of strings 2018-02-15 10:25:45 -08:00
Matt Bierner
3412eab2ec Webview Api Prototype (#42690)
* Webview api

* Cleaning up markdown webview

* Hooking up dispose

* Fix some merge errors

* Use custom context key to show markdown title bar contributions

* Add basic on focus and on blur events

* Fixing find widget in webview

* Hookup _isDisposed

* Use new extension resource scheme to load markdown extension resources

* Documenting keep alive
2018-02-14 18:52:26 -08:00