Commit Graph

203 Commits

Author SHA1 Message Date
Matt Bierner
a2893ce678 Fix markdown fragments when opening file in workspace
Fixes #64141
2018-12-04 15:42:17 -08:00
Matt Bierner
1feed6a23c Delete unused typings file 2018-11-29 10:44:27 -08:00
Prabhanjan S Koushik
e05aa178d6 Fix 63749 - Markdown, U+2028, and "Go to Symbol in File..." (#63936)
* fix-63749 - Added UNICODE_NEWLINE_REGEX

* fix-63749 - Removed .skip for the test method

* fix-63749 Moved Replace to parse
2018-11-29 09:09:36 -08:00
Matt Bierner
2f9f0c35cc Added failing test for #63749
Add skipped test for #63749 so someone can pick this up
2018-11-27 12:02:39 -08:00
Matt Bierner
4737e3efd1 Fixing TS 3.2 compile errors 2018-11-13 17:13:15 -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
Johannes Rieken
b343fcf6ab declare proposed api usage only where actually being used 2018-10-24 12:27:59 +02:00
Sankt Petersbug
f2653c04cb Fix Markdown Preview incorrectly encodes a link (#61530)
For known external scheme, the customized normalizeLink method use vscode.Uri to parse and create
the string representation of the link before caling the original normalizeLink method.
The toString method of vscode.Uri encodes the result by default, and this is unecessary since encoding
is handled by the original normalizeLink method.

Calls toString method with skipEncoding option.

Resolves: #60525
2018-10-22 15:41:22 -07:00
Ahmed Atito
6944a221c3 🐛 - Support C# in markdown preview code block syntax highlighting. (#61291) 2018-10-19 15:13:44 -07:00
Matt Bierner
1b812bade4 Don't re-encode markdown styles http uris
Fixes #60742

These uris should already be encoded. Don't try encoding them again which may cause the uri to become invalid
2018-10-17 18:49:18 -07:00
Matt Bierner
9e017425b3 Replace markdown-named-headers with custom version
Fixes #47537

Use our own version of markdown named headers. This fixes some bugs around handling duplicate headers
2018-10-08 16:04:47 -07:00
Matt Bierner
7d95e3e5f9 Support markdown link navigation when duplicate slugs exist
Fixes #59711

For a md document:

```md
# a

# a

- [a](#a)
- [next a](#a-1)
```

You can now click on the second link in the editor to navigate to the second `a` header. It is identified by being suffixed with `-1`.
2018-10-08 15:51:29 -07:00
Matt Bierner
f87369e1af Treat json5 as json in the markdown preview 2018-10-05 13:06:37 -07:00
Matt Bierner
a529621b3d Disable command uris in preview
We are now using the modern, message passing approach to handling actions in the markdown preview. No more need for command uris
2018-10-04 19:01:34 -07:00
Matt Bierner
6d5214053c Fix local markdown document links for untitled files
Fixes #59523
2018-10-04 19:01:34 -07:00
Matt Bierner
e19c9ba82d Addd option to open markdown preview links in markdown preview
Fixes #19339
2018-09-21 15:08:42 -07:00
Matt Bierner
a101ececf4 Remove onCommand from markdown preview 2018-09-21 15:08:41 -07:00
Matt Bierner
388a62fe12 Fix anchor links in markdown preview 2018-09-21 15:08:41 -07:00
Matt Bierner
7185906189 Reduce usage of postCommand in markdown preview 2018-09-21 15:08:41 -07:00
SteVen Batten
f8f4d3af30 improve markdown preview scroll sync (#58852)
* improve markdown preview scroll sync
2018-09-18 15:08:37 -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
2806df93e4 Try to keep one blank line after markdown block element folds
Fixes #58187
2018-09-07 13:48:44 -07:00
Matt Bierner
a118676a3b Allow folding of html blocks in markdown files
Fixes #57505
2018-09-07 13:41:55 -07:00
Matt Bierner
5eab03cf75 Fix folding code blocks / lists with front matter 2018-09-07 11:36:38 -07:00
Alex Dima
c36258d23f Use const enums (to inline their values in JS) 2018-09-06 20:39:19 +02:00
Matt Bierner
8a849b5734 Allow folding fenced code blocks in md
Fixes #36169
2018-09-05 14:59:34 -07:00
tsangint
c90755b665 Fix typo (#57192) 2018-09-05 08:36:16 -07:00
Jason Bright
d540729e40 add markdown list folding, #57104 (#57899) 2018-09-04 17:43:35 -07:00
Matt Bierner
49edd3d038 markdown toc should include full span to next header
The folding range should exclude blank lines before the next header level
2018-08-24 12:01:25 +02:00
Matt Bierner
2c43eaebec Fix markdown document symbols not having full range of section 2018-08-24 11:01:23 +02:00
Matt Bierner
c3c75a237b Extract getHeaderFoldingRanges 2018-08-24 11:01:22 +02:00
Matt Bierner
ee947947a7 Fix duplicate markdown previews potentially being shown in the same editor group
Fixes #56910
2018-08-21 16:42:11 +02:00
Johannes Rieken
c8ac8ec300 debt - towards scheme-enforcement, #56108 2018-08-10 12:10:30 +02:00
Jackson Kearl
6a1515671f Markdown region folding (#55399)
* Add foldin g of regions to markdown

* Add test for region folding

* Tweak region identification regex
2018-08-07 22:47:29 +02:00
Matt Bierner
4be0f07230 Add WebviewPanel.iconPath (#54912)
* Add WebviewPanel.iconPath

Allows webviews to provide icons used in UI. Adds a new `WebviewPanel.iconPath` property for this.

Replaces the static contribution approach from #49657

Fixes #48864

* Fix doc

* Move icon into mainthreadwebview

* Cleaning up implementation

* Cleaning up implementation
2018-07-24 15:08:46 -07:00
HUA Yang
9038bc7b45 fix #53590 (#54257) 2018-07-18 16:22:29 -07:00
Matt Bierner
33446a0a9e Use hierarchical markdown document symbols
Fixes #52546
2018-06-26 17:31:45 -07:00
Matt Bierner
78f410ce39 Make sure we correctly update local resource roots when switching previewed markdown file
Fixes #49859
2018-06-20 15:48:14 -07:00
Matt Bierner
1a9f7c85b8 Fix content after fenced code block being treated as code
Fixes #52509
2018-06-20 14:15:34 -07:00
Matt Bierner
a85c0b6669 Introduce webview.active
The current `.visible` property actually means active. Rename this value to `.active` and introduce a real `.visible`
2018-06-15 15:51:46 -07:00
Matt Bierner
749eb1ebcd Make sure we handle line number links correctly in preview
Fixes #51919
2018-06-15 10:09:27 -07:00
Benjamin Pasero
2ec2cf597a API tweaks for grid editor (#51876)
* fix #51001

* add onDidChangeTextEditorViewColumn test that validates moving editor group

* adopt vscode.ViewColumn.Beside

* add vscode.setEditorLayout command
2018-06-14 17:17:39 +02:00
Matt Bierner
68afee908e Allow updating webview settings after creation
Fixes #51733
2018-06-13 15:20:18 -07:00
Matt Bierner
99c825f4e2 Make sure we use correct resource when accessing the [markdown] config setting
Fixes #51650
2018-06-12 11:09:41 -07:00
Joao Moreno
8a3ffed0ab vsts: report smoketest results 2018-06-12 17:37:53 +02:00
Joao Moreno
4dc738593b complete integration test results 2018-06-12 17:24:23 +02:00
Matt Bierner
05aab259e7 Extract constant 2018-06-11 18:38:03 -07:00
Matt Bierner
31a8fe2690 Use lazy for creating output channel 2018-06-11 18:38:03 -07:00
Matt Bierner
ed3e645112 Use _private 2018-06-11 18:38:03 -07:00