Commit Graph

15 Commits

Author SHA1 Message Date
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
Matt Bierner
7f3d3d835f Add vscode.env.webviewResourceRoot api
Fixes #72155

Adds a constant to the api that tracks the root path for resources inside of webviews. This is required because we will not be able to use `vscode-resource:` uris on the web. Our current approach is to rewrite the html we are given but there are almost certainly going to be cases where we don't get this quite right.

Adopts the new api for the markdown preview
2019-06-18 22:29:37 -07:00
Matt Bierner
0ec326531e Use flatten array helper 2019-04-02 17:16:10 -07:00
Matt Bierner
d655e6f726 Make sure we always include uriScheme in knownSchems for markdown 2019-04-02 16:27:22 -07:00
Evan Bovie
8c1079b443 Add vscode-insiders URI prefix to knownSchemes in links.ts 2019-04-02 10:23:39 -07:00
Evan Bovie
13948796f3 Add vscode: URI prefix to knownSchemes in links.ts 2019-03-28 12:36:37 -07:00
Matt Bierner
038e8d3904 Make markdown extension points dynamic
For #67574

Blocked by #67958
2019-02-05 17:45:11 -08:00
Matt Bierner
8f10101dd4 Create base class for disposable objects 2019-02-05 17:45:11 -08:00
Matt Bierner
e21df781db Treat data: as a known markdown link scheme
Fixes #62142
2018-10-30 11:34:33 -07:00
Matt Bierner
b72c349e05 Don't try re-encoding vscode-resoure markdown links
Fixes #60374

Some markdown-it extensions end up reprocessing the same tokens multiple times. This can result in our link normalized being re-invoked on a link, which causes it to fail

Fix to to make sure that `vscode-resource` is a recongized link so that we don't try re-normalizing in these cases
2018-10-29 16:18:11 -07:00
Matt Bierner
4096b5d68e Avoid uri parse warnings for markdown uris
Fixes #58566

We only support local file links or a small set of normal schemes, like `http` and `mailto`. Use this to avoid calling `Uri.parse` with scheme-less paths such as `Uri.parse('/images/cat.gif')`
2018-09-13 15:43:47 -07:00
Matt Bierner
05aab259e7 Extract constant 2018-06-11 18:38:03 -07:00
Matt Bierner
7a24ced69f Make sure fenced code blocks properly get line numbers assigned
Fixes #51095
2018-06-04 10:16:58 -07:00
Matt Bierner
017d09e2fe Be more lazy computing symbols 2018-04-13 16:34:25 -07:00
Matt Bierner
468dc867cd Rename markdown to markdown-language-features 2018-03-19 21:08:39 -07:00