Commit Graph

92 Commits

Author SHA1 Message Date
Matt Bierner
8de74d9255 Extracting common webview elements
Minimizing diff with the iframe based webview branch
2019-06-11 22:45:55 -07:00
Matt Bierner
f3b8d15b0d Add DocumentLink.tooltip api proposal
For #72824
2019-05-23 17:57:04 -07:00
Matt Bierner
71deb5b6ee Extend disposable 2019-05-22 15:25:48 -07:00
Matt Bierner
519eb3690c Extract duplicated escaping code 2019-05-22 15:25:48 -07:00
Matt Bierner
f250d19bb5 Use relative size for markdown code font size
Fixes #74125
2019-05-22 10:53:49 -07:00
Matt Bierner
4470b868a3 Check pending version before updating markdown preview content
For #72671
2019-04-29 13:49:36 -07:00
Matt Bierner
312b09cc6b extract setContent 2019-04-12 14:43:14 -07:00
Matt Bierner
74103c4c8d Don't change preview when click fails but do show an alert 2019-04-12 14:43:14 -07:00
Matt Bierner
3b58a011da Only try/catch openTextDocument 2019-04-12 14:43:14 -07:00
Matt Bierner
c79f1cd8e3 Styling 2019-04-12 14:43:14 -07:00
pkoushik
bda2870db9 fix-71570 Fixed localize string issue 2019-04-06 12:19:10 +05:30
pkoushik
10a4ebf006 Merge remote-tracking branch 'upstream/master' into fix-71570
* upstream/master: (34 commits)
  Fix markdown.styled regression caused by Uri.parse changes
  Process explorer refactoring
  fix compile error
  fix open workspace uri from cli
  Delete deprecated search provider stub
  test dependenices are devDependencies
  Fix default uri when scheme is file
  disable flaky test, #71801
  use `readonly T[]` instead of `ReadonlyArray<T>`
  simplify protocol check
  Let enablment service handles local workspace extensions in remote window
  debt - make ext host init data more complete
  Fix colorization tests
  fixes #71671
  Update grammars
  Add yes-no choice for overwriting existing file for save as
  update distro
  ExtensionEnablementService: - Remove getDisabledExtensions and instead use isEnabled or getEnablementState methods
  Simplify reload action and fix test
  Update distro hash
  ...
2019-04-06 12:17:00 +05:30
Matt Bierner
f44e51ed38 Fix markdown.styled regression caused by Uri.parse changes
Fixes #71802

Uri.parse now defaults to a `file` scheme, which broke this code
2019-04-05 16:05:32 -07:00
pkoushik
3cef5067be fix-71570 Added logic to handle markdown preview update on file rename and delete 2019-04-05 11:38:18 +05:30
Matt Bierner
86fe4b3b1c 💄 2019-04-03 11:37:19 -07:00
Matt Bierner
0ec326531e Use flatten array helper 2019-04-02 17:16:10 -07:00
Matt Bierner
fe01a19db1 Revert change accidentially include in check in 2019-02-20 13:56:58 -08:00
Matt Bierner
178327770c Add lightbulb badge when a preferred fix is available
Fixes #66702
2019-02-20 13:36:44 -08: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
476d7fe0ab Refactor markdown contributions
Reducing code duplication and reducing state
2019-02-05 16:56:45 -08:00
Phil Marshall
4c2d33559f lazy quantifiers for linkPattern regex 2019-01-25 19:07:45 -06:00
Phil Marshall
ef66e5fab1 tweaked linkPattern regex to pass new tests 2019-01-25 18:55:42 -06:00
Phil Marshall
9070abedaf image link should be pushed to results before other link 2019-01-25 18:45:06 -06:00
Phil Marshall
5fdc5c2675 factor documentlink extraction into separate function 2019-01-24 17:25:09 -06:00
Phil Marshall
d372fa0697 md extension should underline images used as link description 2019-01-22 18:46:46 -06:00
Matt Bierner
1bbc0e3b4d Deprecate the previewFrontMatter setting
Switch to always hiding the frontmatter and then allowing markdown-it plugins to render it properly if they wish. `previewFrontMatter: "show"` is also not very useful since it usually results in a jumble of text at the top of the file

This is required with the new performance work to avoid re-tokenizing the document  multiple times during rendering
2019-01-09 19:05:55 -08:00
Matt Bierner
7086fb76ec Take document as parameter instead document components 2019-01-02 11:56:39 -08:00
Matt Bierner
f52f29d65e Add typings for markdown preview messages 2018-12-04 15:54:53 -08:00
Matt Bierner
a2893ce678 Fix markdown fragments when opening file in workspace
Fixes #64141
2018-12-04 15:42:17 -08:00
Matt Bierner
4737e3efd1 Fixing TS 3.2 compile errors 2018-11-13 17:13:15 -08: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
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
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
8a849b5734 Allow folding fenced code blocks in md
Fixes #36169
2018-09-05 14:59:34 -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
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
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