Matt Bierner
e9b8c12915
Add types
2021-05-21 14:36:19 -07:00
rebornix
a03daaf850
Merge branch 'notebook/dev' into main
2021-05-21 14:13:43 -07:00
Matt Bierner
22dc518a21
Remove unused type
2021-05-21 12:16:49 -07:00
Matt Bierner
97bbacd808
Remove extra call to with
2021-05-21 12:16:49 -07:00
Matt Bierner
79dea51e79
Rewrite webview urls to be more url-ish
...
## Problem
Webview uris currently have the form:
```
https://uuid.vscode-webview.net/vscode-resource/scheme/authority/path ...
```
We have this syntax because we need to be able to recover the original scheme and authority of the resource in order to load it from disk
However this syntax means that absolute urls don't behave as you'd expect. For example, if you have a webview that sets a `<base>` to a document in the workspace, an absolute url `/abs/path.png` ends up being resolved to:
```
https://uuid.vscode-webview.net/abs/path.png
```
This drops the original scheme and authority, which prevents us from loading the resource
## Fix
With this change, I've moved the original scheme and authority into the authority of the webview uri instead of the path:
```
https://scheme+authority.vscode-resource.uuid.vscode-webview.net/path ...
```
With this change, absolute paths should correctly be resolved
2021-05-21 09:28:43 -07:00
Rob Lourens
70c87f0db9
Fix #124240
2021-05-21 09:12:57 -07:00
Johannes Rieken
effac5be7f
drop as-prefix for ICreateCellInfo
2021-05-21 17:30:29 +02:00
Alex Dima
85f518b255
Add RemoteAuthorityResolver.getCanonicalURI
2021-05-21 16:48:14 +02:00
Martin Aeschlimann
32a06b9be2
[typescript] add limited description
2021-05-21 15:38:02 +02:00
Johannes Rieken
375a15f07e
Merge branch 'main' into notebook/dev
2021-05-21 12:59:49 +02:00
Johannes Rieken
494e827e35
expose output item bytes to renderers and provide util functions: asText, asJSON, asBytes, asBlob, fyi @connor4312, https://github.com/microsoft/vscode/issues/123884
2021-05-21 12:36:10 +02:00
Martin Aeschlimann
73c6f34f9e
Do not recognize Debian's .install file as a shell script. Fixes #124295
2021-05-21 11:20:33 +02:00
rebornix
894b7782cc
Merge branch 'notebook/dev' into main
2021-05-20 14:17:28 -07:00
Raymond Zhao
9627b4ea63
Emmet identify CDATA for wrap, fixes #123136
2021-05-20 13:20:50 -07:00
Andrea Mah
18c254987c
Merge branch 'main' into dev/t-andreamah/markdown-static-preview-scroll-state
2021-05-20 09:47:29 -06:00
rebornix
f583b4b336
Merge branch 'main' into notebook/dev
2021-05-19 19:02:13 -07:00
Matt Bierner
34180ac9be
Remove code allowing multiple ids for a command
...
This doesn't appear to be used anywhere
2021-05-19 18:23:51 -07:00
Matt Bierner
35eafb7873
Add sort imports command
...
Fixes #122593
Sort imports just sorts imports, vs organize imports which also removes unused imports
2021-05-19 18:20:16 -07:00
Andrea Mah
4fbd548d72
Merge branch 'main' into dev/t-andreamah/markdown-static-preview-scroll-state
2021-05-19 17:25:56 -06:00
Andrea Mah
f594bb47e5
removing more unecessary whitespace
2021-05-19 17:00:55 -06:00
Andrea Mah
41606da2dc
removing unecessary spaces
2021-05-19 16:59:26 -06:00
Andrea Mah
9ee1906718
pr feedback and combining prevEditor info for preview and non-preview
2021-05-19 16:57:12 -06:00
Matt Bierner
f433b4781a
Pick up TS 4.3.1-rc
2021-05-19 15:47:35 -07:00
Matt Bierner
d921cc41fc
Update markdown grammar
2021-05-19 15:34:07 -07:00
Rob Lourens
0d33806803
Add suiteRepeat test util
2021-05-19 14:29:32 -07:00
rebornix
5b3cf7cc2a
Merge branch 'notebook/dev' into main
2021-05-19 14:12:17 -07:00
João Moreno
25a12c75c5
use dummy uri
2021-05-19 20:40:07 +02:00
Andrea Mah
44d135e94f
Merge branch 'main' into dev/t-andreamah/markdown-static-preview-scroll-state
2021-05-19 12:15:49 -06:00
Connor Peet
b02acf3908
Merge pull request #123738 from microsoft/dev/mjbvz/unify-renderers-api
...
First cut at unifying notebook renderers apis
2021-05-19 08:52:02 -07:00
Johannes Rieken
b63ad124d2
mark untitled notebooks as dirty by default, don't hold on to untitled notebooks eagerly, https://github.com/microsoft/vscode/issues/121974
2021-05-19 17:16:48 +02:00
Johannes Rieken
53352a2954
add API to open an untitled notebook, https://github.com/microsoft/vscode/issues/121974
2021-05-19 15:27:23 +02:00
Benjamin Pasero
159479eb5a
Allow to show status bar entries with an id and name ( fix #74972 )
2021-05-19 14:03:37 +02:00
Rob Lourens
97518f5e86
Copy testRepeat helper to extension integration tests
2021-05-18 21:53:57 -07:00
Connor Peet
616e0fd992
refactor: polish
...
- Fix mis-used dependencies. Add the roughly proposed 'extends' model
for notebook renderers. Keep it out of contribution schema for now
until we can work it more.
- Made new loading work with JS modules.
- Consolidated the 'old style' code in the renderer so that we can just
delete it when the time comes.
- Removed duplicated code and sharp edges from the 'queue' mechaism.
2021-05-18 16:59:09 -07:00
rebornix
df93e53dfb
Merge branch 'notebook/dev' into main
2021-05-18 14:30:53 -07:00
Connor Peet
5c4fae9176
Merge remote-tracking branch 'origin/notebook/dev' into dev/mjbvz/unify-renderers-api
2021-05-18 12:55:33 -07:00
Miguel Solorio
455a8b6949
List focus colors are too dark ( Fixes #123703 )
2021-05-18 10:24:01 -07:00
Alex Ross
e4159c8f89
Add protocol to portsAttributes
...
Part of #123750
2021-05-18 12:55:17 +02:00
Johannes Rieken
956347c4ed
better logic for "notebook open/close, notebook ready when cell-document open event is fired", https://github.com/microsoft/vscode/issues/123655
2021-05-18 09:40:31 +02:00
Alex Ross
736896527c
Improve npm trust message
2021-05-17 10:50:33 +02:00
Alex Ross
c8b4656197
Add requireLocalPort property to portsAttributes
...
Fixes microsoft/vscode-remote-release#4958
2021-05-14 16:01:40 +02:00
Andrea Mah
94498778fb
cleanup
2021-05-13 15:24:56 -06:00
Rob Lourens
f9df7b2f1a
Merge branch 'main' into notebook/dev
2021-05-13 12:48:47 -07:00
Andrea Mah
9731995d94
addressed ! nit
2021-05-13 12:39:52 -06:00
Andrea Mah
3dec3b3385
applied PR feedback
2021-05-13 12:30:10 -06:00
Matt Bierner
66fa5c41b3
First cut at unifying notebook renderers apis
...
This implements the api described in #123540 . Major points:
- Instead of having the `markdown-it` renderer pull it its dependencies, instead the dependencies can call `getRenderer` to import the object returned by the `markdown-it` renderer
- We try to detect if a renderer is using the old or new api. Old renderers are still run as globals while new ones are loaded with `import`
- I have only hooked up the new API for markdown renderers so far
2021-05-12 19:32:57 -07:00
Rob Lourens
2b8d74c4a8
Make metadata/internalMetadata non-optional
2021-05-12 18:19:10 -07:00
Andrea Mah
d2894562d5
fixing issue with static scroll alongside text editor
2021-05-12 17:59:00 -06:00
Andrea Mah
ee4510b4bf
Merge branch 'main' into dev/t-andreamah/markdown-static-preview-scroll-state
2021-05-12 17:01:41 -06:00
Andrea Mah
18950181eb
scroll state persists while toggling between static preview and text
2021-05-12 16:59:57 -06:00