Commit Graph

119 Commits

Author SHA1 Message Date
Matt Bierner
4d9460470a Simplify csp for getDeserializationFailedContents
This page should never contain anything except text
2019-08-20 16:05:11 -07:00
Matt Bierner
1c05a14d3c Don't track webviews separately from inputs
The webviews should always be accessible through the inputs
2019-08-20 16:00:23 -07:00
Matt Bierner
5e57212107 Better handle cases where webview view state in api can get out sync with real view state
Fixes #79492

Simplifies view state management logic in `mainThreadWebviews` to:

* Not be stateful
* Handle cases where a webview's view state changes through a more complex means (see #79492 for an example of this)
2019-08-20 15:57:06 -07:00
Matt Bierner
df0dd2edc2 Move webview into browser
Fixes #79424

This file depends on dom api so it should live in browser instead of common
2019-08-19 21:06:47 -07:00
Sandeep Somavarapu
8095541d7d inline product configuration in produt service 2019-08-15 16:08:11 +02:00
Sandeep Somavarapu
e0a685e585 expose product configuration in product service 2019-08-14 18:21:58 +02:00
Matt Bierner
0366e573f5 Track editor inputs and webview separately 2019-07-22 16:24:53 -07:00
Matt Bierner
928ae46457 Rewrite how webviews are managed internally
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
2019-07-17 18:14:08 -07:00
Matt Bierner
8b69b981de Simplify state used for webviews
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
2019-07-17 18:14:08 -07:00
Matt Bierner
4629479920 Don't require using state to check if we can revive 2019-07-17 18:14:08 -07:00
Matt Bierner
e26db506b7 Mark that state may be undefined 2019-07-17 18:14:08 -07:00
Matt Bierner
5106b556bd Support loading webviews from wildcard endpoints
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
2019-07-12 15:38:12 -07:00
Matt Bierner
f57ff0b25c Remove webview _onBeforeShutdown
This should no longer be required
2019-07-10 11:55:37 -07:00
Matt Bierner
a558a9504a Adding toWebviewResource api
For #76489
2019-07-08 18:38:47 -07:00
Matt Bierner
8119b4aee7 Move the webviewResourceRoot property to be set on each webview instead of as a global property
For #72155

This allows  us to potentially change the resource root per webview
2019-06-24 17:07:06 -07:00
Benjamin Pasero
998a65e2ca web - best lifecycle support we can do currently 2019-06-18 15:12:46 +02:00
Matt Bierner
e7a5f9a5e2 Remove the vscode-core-resource scheme
This is no longer required and complicates loading of resources. Use the standard `vscode-resource` scheme instead
2019-06-12 11:17:59 -07:00
Johannes Rieken
6f1da34c2e debt - decouple webviews from code insets, move things to /browser/-layer, change inset api proposal to push style, re #66418 2019-06-04 12:31:18 +02:00
Alex Dima
022835ea42 Connect to the remote extension host 2019-05-24 18:33:29 +02:00