Commit Graph

1195 Commits

Author SHA1 Message Date
Liu
39d6463003 Update package.nls.json 2025-06-20 12:01:50 +08:00
Liu
47871a8cb3 Merge branch 'main' into main 2025-06-16 02:17:50 +08:00
heoh
53a4ef7018 Fix markdown preview scroll crawls at EOF (fix #249278) 2025-06-12 03:56:11 +09:00
Liu
e741ef491b Update copyFiles.ts 2025-06-06 02:43:21 +08:00
Matt Bierner
6dbeb7ba5f Merge pull request #249520 from mjbvz/western-slug
Fix sanitizer call
2025-05-22 12:53:03 -07:00
Matt Bierner
b6f2887eb0 Fix sanitizer call
Fixes #247432
2025-05-22 00:23:05 -07:00
Matt Bierner
73f244c82b Make sure to escape cspSource
Good practice

Also makes sure we don't include full file uris in the csp
2025-05-22 00:01:01 -07:00
Matt Bierner
d4d2f93bf7 Pick up latest vscode-markdown-languageserver 2025-05-20 19:28:34 -07:00
Matt Bierner
aa986f0d99 Include preview roots in list of allowed markdown preview csp roots
Fixes #249321
2025-05-19 16:47:17 -07:00
Matt Bierner
42c4a17dd9 Merge pull request #240508 from notoriousmango/copy-image-handle-error
fix: use the copy command for images with CORS errors in the markdown preview
2025-03-25 13:35:14 -07:00
Matt Bierner
a09b4abef2 Also update lockfile 2025-03-24 15:29:37 -07:00
Matt Bierner
dd74e0494a Pick up latest md language server 2025-03-24 15:03:03 -07:00
Matt Bierner
23812e0d8f Make sure scripts in md preview are properly evaluated
Fixes #243454

This restores the previous behavior. If the default security settings are used, scripts will still block blocked by the CSP. If you fully disable the security settings, then we'll try to run them
2025-03-17 11:45:49 -07:00
Seong Min Park
de60000148 Merge branch 'main' into copy-image-handle-error 2025-03-16 16:04:34 +09:00
Matt Bierner
0a66642a04 Don't duplicate body in md preview
Fixes #243340
2025-03-12 09:07:34 -07:00
Seong Min Park
2b1c717948 Merge branch 'main' into copy-image-handle-error 2025-02-25 21:35:41 +09:00
Seong Min Park
efe29bb57d register output channel 2025-02-21 07:29:00 +09:00
Seong Min Park
8ee87efa3f add colon 2025-02-20 22:25:56 +09:00
Seong Min Park
7c7d37ea8d revert markdown.trace.server 2025-02-20 22:09:42 +09:00
notoriousmango
c4f757d3ce verbose to trace 2025-02-20 18:42:41 +09:00
Seong Min Park
690caf2e14 logger 2025-02-19 22:36:54 +09:00
Benjamin Pasero
419e6aa2f3 debt - remove missing documentPaste proposal (#241019) 2025-02-17 17:02:04 +01:00
dependabot[bot]
d37a30e600 Bump dompurify from 3.1.7 to 3.2.4 in /extensions/markdown-language-features (#240973)
Bump dompurify in /extensions/markdown-language-features

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.1.7 to 3.2.4.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.1.7...3.2.4)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 11:31:27 +01:00
notoriousmango
0928609c9b use selection to copy from web view 2025-02-12 19:09:31 +09:00
Matt Bierner
0252e92b01 Merge pull request #239046 from mjbvz/gross-yak
Support more image/video/audio types for markdown copy into files
2025-02-04 11:20:36 -08:00
Matt Bierner
94c2ff587a Use more clear label for markdown validation item 2025-01-29 14:13:00 -08:00
ふぁ
f07edc3dbe fix: update unix timestamp to milliseconds in copyFiles feature
Signed-off-by: ふぁ <yuki@yuki0311.com>
2025-01-29 15:35:33 +09:00
Matt Bierner
f9213d7b48 Support more image/video/audio types for markdown copy into files
Fixes #239016
2025-01-28 15:35:46 -08:00
Matt Bierner
ae715a85ad Merge pull request #238027 from HD787/unixTime
Add ${unixTime} Placeholder for markdown.copyFiles.destination Option
2025-01-21 10:29:03 -06:00
João Moreno
f6ec9aa2e6 bump katex (#238271) 2025-01-20 10:39:21 +01:00
henry
da45c202b2 added unix time to copyfiles for markdown 2025-01-15 22:54:34 -06:00
Matt Bierner
4daea74ba9 Finalize paste api and drop api tweaks
Fixes #30066

This finalizes the documentPaste api. This api allows extensions to attach metadata on text copy and change how content is pasted. Some examples:

- Updating imports for pasted code
- Inserting an image as an attachment in notebooks
- Pasting files converts them to relative text paths
2025-01-07 14:57:16 -08:00
Matt Bierner
7cf9dbecf6 Fix escaping of raw values that contain & in md preview
Fixes #236660
2024-12-20 10:52:07 -08:00
Matt Bierner
d70e0e2fe0 Merge pull request #236406 from mjbvz/confidential-trout
Small cleanup follow up on #236145
2024-12-17 12:22:16 -08:00
Matt Bierner
a47b13ebc2 Small cleanup follow up on #236145
- Don't send content as json
- Reuse existing load helper
2024-12-17 11:59:05 -08:00
Matt Bierner
4559089128 Merge pull request #234649 from notoriousmango/feat-open-image
Add 'open image' context in markdown preview
2024-12-17 11:55:25 -08:00
Matt Bierner
5e26b3d7c3 Merge pull request #236145 from Parasaran-Python/235221
fix 235221: Sanitizing the html content by closing the unclosed tags
2024-12-17 11:51:22 -08:00
Matt Bierner
b3b7f0e3ed Merge pull request #236400 from mjbvz/advanced-leopard
Add markdown validation status item
2024-12-17 11:47:13 -08:00
Matt Bierner
7cc28c3e81 Add markdown validation status item
Fixes #236399
2024-12-17 11:30:32 -08:00
Logan Ramos
e689b912ba Update telemetry package (#236378) 2024-12-17 20:12:49 +01:00
Parasaran
ca72122751 fix 235221: Encode and decode markdown content to escape illegal chars 2024-12-17 23:32:42 +05:30
Parasaran
da1d8b9c8e fix 235221: Passing the markdown content to the webview via meta tag and purifying it before use 2024-12-17 22:57:12 +05:30
notoriousmango
f7c3b1b474 use openDocumentLink 2024-12-15 00:11:54 +09:00
notoriousmango
ea6463e38c rename 2024-11-27 17:25:41 +09:00
notoriousmango
0715a50f63 move openImage logic to command 2024-11-27 17:03:33 +09:00
notoriousmango
0b243279cc open image 2024-11-26 19:53:31 +09:00
Matt Bierner
fc5cff7bb6 Allow overriding how markdown links are inserted using the keybinding (#234310)
Allows using the `kind` field in the `pasteAs` keybinding to force links to be inserted a certain way, such as as images
2024-11-21 00:55:47 +01:00
Matt Bierner
c83b443da0 Clean up support for paste edits (#234240)
- Allow setting an array of preferences for paste as keybindings
- Clarifies kinds used for core and extensions
- Exports text kind as API
2024-11-20 07:14:10 +01:00
Matt Bierner
002c12c922 Pick up latest markdown language server (#232634) 2024-10-30 10:34:40 -07:00
Matt Bierner
4679606b30 Don't try watching non writable file systems (#232433)
For ts and markdown, skip watching on file systems that are not writable as these files should not change
2024-10-28 11:12:01 -07:00