Commit Graph

159 Commits

Author SHA1 Message Date
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 d655e6f726 Make sure we always include uriScheme in knownSchems for markdown 2019-04-02 16:27:22 -07:00
Matt Bierner 37c9a750b0 Merge pull request #71442 from vitaliymaz/fix-markdonw-re-render
re-rendering Markdown preview when updated extra configurations provided by extension
2019-04-02 11:03:59 -07:00
Evan Bovie 8c1079b443 Add vscode-insiders URI prefix to knownSchemes in links.ts 2019-04-02 10:23:39 -07:00
Vitaliy Mazurenko e40d72b1b5 re-rendering Markdown preview when updated extra configurations provided by extension 2019-04-01 10:52:23 +03:00
Evan Bovie 13948796f3 Add vscode: URI prefix to knownSchemes in links.ts 2019-03-28 12:36:37 -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
Johannes Rieken c110d84460 fix integration test 2019-02-08 18:03:56 +01:00
Matt Bierner 6ca137730b Extract 2019-02-06 14:04:24 -08:00
Matt Bierner 198e6a55e7 Make sure we dispose of event emitters properly 2019-02-06 14:04:24 -08:00
Matt Bierner 6b8b1b7bea Improve naming 2019-02-06 14:04:24 -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
Matt Bierner c79a8bf7eb Remove stray log
:)
2019-02-01 14:45:26 -08:00
Matt Bierner c1c3e5eab0 Properly encode markdown file path for open links
Fixes #59523

Double encode the path so that `Uri.parse`'s decoding only strips out the first level of encoding
2019-01-28 15:45:42 -08:00
Matt Bierner 4fe1cdc4df Merge pull request #66958 from flurmbo/detect-md-image-link
Detect md image link
2019-01-25 17:46:47 -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 a7c88d79a2 updated test for switched order and new tests for image link 2019-01-25 18:46:28 -06:00
Phil Marshall 9070abedaf image link should be pushed to results before other link 2019-01-25 18:45:06 -06:00
Matt Bierner 7f1745027b Re-use options from markdown engine instead of creating new options object
Fixes https://github.com/mjbvz/vscode-markdown-mermaid/issues/26
2019-01-25 11:48:25 -08:00
Phil Marshall 5fdc5c2675 factor documentlink extraction into separate function 2019-01-24 17:25:09 -06:00
Phil Marshall b1de159292 added test for markdown image link underline 2019-01-22 18:46:55 -06:00
Phil Marshall d372fa0697 md extension should underline images used as link description 2019-01-22 18:46:46 -06:00
Matt Bierner 59ce7f3b28 Fix markdown preview code highlighting
Fixes #66772
2019-01-21 14:09:30 -08:00
alexet 0798d13f10 Remove duplicate character from regex class 2019-01-16 17:56:17 +00:00
Matt Bierner 344f4fa361 Make sure we update the markdown document on config changes 2019-01-09 19:32:53 -08:00
Matt Bierner 758280cc47 Extract TokenCache 2019-01-09 19:27:41 -08:00
Matt Bierner 5496ba7617 Prevent possible race while initilizing markdown engine 2019-01-09 19:18:23 -08: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 e325cce9bc Fixing markdown unit tests 2019-01-09 18:15:34 -08:00
Matt Bierner 9140285092 Merge pull request #65953 from skprabhanjan/fix-65575
Fix-65575 MarkdownIt plugins (or Rules) called multiple times for one input
2019-01-09 17:41:47 -08:00
pkoushik a6b761b033 fix-65575 Updated tokenize method - Returns cached token if exists or newly created token and cache it 2019-01-08 15:22:29 +05:30
pkoushik eabf436c07 fix-65575 tokenize method cache update bug fixed 2019-01-04 20:13:27 +05:30
pkoushik 661d191638 fix-65575 tokenize method added 2019-01-04 20:07:21 +05:30
Rob Lourens ef2547d547 replace void 0 with undefined 2019-01-03 11:20:19 -08:00
pkoushik 1ef045875d fix-65575 Added CachedToken and implementation to use it 2019-01-03 11:56:11 +05:30
Matt Bierner 7086fb76ec Take document as parameter instead document components 2019-01-02 11:56:39 -08:00
Prabhanjan S Koushik 55ebf93842 fix-65287 Added webviewManager.refresh() (#65396) 2018-12-19 11:05:57 -08:00