Commit graph

1082 commits

Author SHA1 Message Date
Matt Bierner 5a55352cf7
Combine esbuild scripts (#184531)
* Combine esbuild scripts

This combines the various build scripts used for building webview/notebook content. This should make it easier to update settings for them

As part of this, I also fixed the script so that on watch it restarts automatically on syntax errors instead of exiting

* Migrate other build script

* Fixing math build script
2023-06-09 14:55:05 -07:00
MeghanKulkarni 67cc0965b3
allow images in markdown preview editor to be copied (#184432)
* allow images in markdown preview editor to be copied

* resolved feedback

* added findPreview method

* removed copy image command from showPreview

* clean up

---------

Co-authored-by: Meghan Kulkarni <t-mekulkarni@microsoft.com>
2023-06-07 18:08:22 +00:00
Matt Bierner 9776ec9eb4
Pick up latest markdown language service (#184448)
* Pick up latest markdown language service

* Bump server version
2023-06-06 23:18:37 +02:00
Matt Bierner 671ab0ff7c
Pick up latest markdown language server (#184215) 2023-06-02 23:13:26 +02:00
Matt Bierner a9fe660ce6
Enable dropping image/* data into markdown to insert images (#184112)
Enable dropping image/* data into editor

This enable drop to create images on web
2023-06-01 21:37:48 -07:00
Matt Bierner 0e0b629ef5
Respect copy files correctly when in .dot files (#184109)
Fixes #183998
2023-06-01 21:33:48 -07:00
Matt Bierner fa8eefda18
Use <...> style markdown links when needed (#183876)
Fixes #183849
2023-05-31 09:58:23 +10:00
Matt Bierner 8d59fc4e0f
Fix small typo (#183865)
Fixes #183819
2023-05-30 22:16:13 +02:00
Matt Bierner d933dbdc34
Default to filename for markdown new file if empty (#183864)
Fixes #183848
2023-05-30 22:09:43 +02:00
Matt Bierner 50527c97d8
Use desired file name when generating new md pasted file paths (#183861)
Fixes #183851
2023-05-30 21:54:18 +02:00
Matt Bierner 3c161fd2b1
Add better label when adding video/video to md (#183379) 2023-05-25 01:30:06 +02:00
Anuj Parajuli 6675ef9017
Adds #181652 html audio tag for audio file (#183328) 2023-05-24 21:28:52 +00:00
Matt Bierner 8625a005a6
Pick up latest markdown language server (#183294) 2023-05-24 07:58:40 +02:00
Matt Bierner 7a7d45793b
Allow external copying files into the workspace on markdown drop / paste (#182572)
Allow copying files in the workspace on markdown drop / paste

Fixes #157043

Also:

- Renames the markdown paste settings and makes them no longer experimental
- Makes the copyFiles setting no longer experimental
- Adds a `markdown.copyFiles.overwriteBehavior` which lets you control if/how existing files are overwritten
2023-05-15 20:17:52 -07:00
Matt Bierner 4d38422afe
Add priority to paste / drop apis (#182109)
* Add priority to paste / drop apis

Fixes #181886

Replacement for #181453

* Make notebooks prefer text over creating attachments
2023-05-10 14:18:05 -07:00
Matt Bierner ca51a4b04c
Add paste as command (#181959)
For #30066

This command shows a quick pick that lets you select how to paste content
2023-05-10 06:17:42 -07:00
Matt Bierner 83c12a2da2
Allow creating multiple files or attachments on paste (#181975) 2023-05-09 17:20:37 -07:00
Matt Bierner a99c29b544
Fix setting reference (#181938) 2023-05-09 21:10:04 +02:00
Matt Bierner ab0a574bb9
Don't enable paste to create files in untitled files (#181929) 2023-05-09 20:45:19 +02:00
Matt Bierner 8023c8377b
Pick up latest markdown language service (#181910) 2023-05-09 18:17:09 +02:00
Michael Lively c621b7adeb
Merge pull request #181427 from microsoft/protestant-ptarmigan
Enable paste as widget for notebook cells
2023-05-03 10:07:56 -07:00
Michael Lively 2a6b42a71c
enable paste widget for notebook cells 2023-05-03 09:51:29 -07:00
Matt Bierner 6384b9bcdf
Add setting to disable paste as functionality and paste widget (#181375)
For #30066

This removes the `editor.experimental.pasteActions.enabled` setting in favor of `editor.pasteAs.enabled` (which also defaults to on)
2023-05-03 08:55:06 +02:00
Matt Bierner 11ca8d75a1
Add widget to change how content is pasted (#181290)
* Add widget to change how content is pasted

For #30066

This adds a widget that lets you change how content is pasted if there are multiple ways it could be pasted

To do this, I've made the post drop widget generic and reused it for pasting too

* Update types

* More code deduplication
2023-05-02 09:40:04 +02:00
Matt Bierner ab7c32a5b5
Specify codeActionKinds (#180576)
Avoids extra calls and lets us show this info in the UI
2023-04-21 23:46:30 +02:00
Matt Bierner 3273501a5a
Address drop UX feedback (#180343)
- Reduce margin on button
- Change icon to insert
- Try to align styling to match other editor widgets
- Use capital casing on entries
2023-04-19 19:05:56 +02:00
Matt Bierner f6de066b4c
Improve labels when dropping resources into markdown files (#180260) 2023-04-18 15:11:38 -07:00
Matt Bierner 739b93cce8
Update drop metadata proposal (#179918)
- Makes `dropMimeTypes` required
- Prefix the actual `id` used internally with the extension id
- Allow wildcard mime types, such as `image/*`
2023-04-14 07:59:38 +10:00
Matt Bierner 830d534e27
Allow passing in a DataTransferFile to workspace edit (#175809)
* Allow passing in a `DataTransferItem` to workspace edit

Fixes #175800

Allows you to pass a file `DataTransferItem` to `WorkspaceEdit.createFile`. This lets us avoid transferring the data back and forth to the extension host, and also avoid having to base64 encode and decode it, significantly improving performance for large files

* Take data transfer file instead of data transfer item
2023-04-13 14:08:08 -07:00
Matt Bierner d6f23042e3
Log uri as a string instead of as an object (#179721) 2023-04-11 14:19:12 -07:00
Matt Bierner e9262678fa
Add drop feedback UX (#179434)
For #179430

Adds two new UX components:

- An inline progress icon shown when a drop operation takes over 500ms. This replaces the notification. You can click on it to cancel the drop

- Post drop, a drop feedback icon that lets you drop the file in a different way. This lets you drop the file as plain text for instance instead of as a markdown link
2023-04-11 13:48:24 -07:00
Joyce Er 812f3f5fc4
Insert <video> tag for shift+mp4 into .md (#179489)
* Insert `<video>` tag for `shift`+mp4 into .md

* Simpler drop text
2023-04-10 15:30:34 -07:00
Matt Bierner fff3860de9
Always use vscode-textCodeBlock-background in rendered markdown (#179313)
Use vscode-textCodeBlock-background in rendered markdown

Fixes #179219
2023-04-05 23:02:22 +02:00
Matt Bierner 4126b98d1b
Add working directory for md server publish (#179027) 2023-04-03 10:01:51 -07:00
Teddy Bradford b244524d08
Update Markdown preview styles to prevent sub and sup from affecting line height (#178653)
Prevent `sub` and `sup` from affecting line height
2023-03-30 18:07:18 +00:00
Matt Bierner 15143c24a5
Fix md server build script compile and remove unused test part (#178635)
* Fix compile and remove unused test script

* Do full install so we pull in gulp
2023-03-29 16:58:39 -07:00
Matt Bierner 7095b11615
Set cwd for running md server build (#178629)
Should make pipeline much faster
2023-03-29 15:22:40 -07:00
Matt Bierner 7a463ec271
Prefer reusing open tabs when opening md links in editors (#178628)
Fixes #81238
2023-03-29 15:21:31 -07:00
Matt Bierner af5ef24b52
Use yarn instead in md server build script (#178622)
Also removes unused API extractor script
2023-03-29 14:46:38 -07:00
Matt Bierner 5f328ba75d
Markdown language server 0.3.0 (#178512)
0.3.0 for markdown language server
2023-03-28 20:14:46 +02:00
Matt Bierner d490dfe9f7
Disable MD server builds on changes (#178464)
We will manually trigger builds instead
2023-03-28 09:00:10 +02:00
Matt Bierner 87a6bda310
Fix opening encoded markdown fragment in preview (#178465)
Fixes #178340
2023-03-28 08:59:30 +02:00
Matt Bierner 1379bf3f15
Fix markdown webview state updates (#178153)
Fixes #164071

Also fixes the webview not scrolling when the resources changes
2023-03-23 17:51:09 +00:00
Matt Bierner 143d94ae0d
Add publish pipeline for md server (#177387) 2023-03-16 16:22:21 -07:00
Matt Bierner 7800bd3492
Clamp line to > 0 (#176970)
Fixes #176924
2023-03-13 16:37:19 +01:00
Matt Bierner 924ee8b4d8
Don't scroll sync to elements inside collapsed details sections (#176541)
Fixes #176538

Turns out that `getClientBoundingRect` returns weird bounds for elements inside of a collapsed details section
2023-03-08 21:06:26 +01:00
Matt Bierner da15b03a10
Add setting to control markdown LS log level (#176472) 2023-03-08 08:00:34 +01:00
Matt Bierner 3ca5284e44
Clean up markdown preview messaging (#176458)
- Add properties directly to message
- Add `ImageInfo` type
- Don't use state to pass around imageInfo
2023-03-07 17:28:13 -08:00
Matt Bierner 6a44101bb1
Type markdown preview webview message (#176444)
Simply types messages. Will clean up types in next pass
2023-03-07 14:23:17 -08:00
Matt Bierner 83c4e0f5c4
Reset markdown scroll progress on resource change (#176437)
Reset scroll progress on resource change

Fixes #164071
2023-03-07 23:12:46 +01:00
Matt Bierner 41e0b50a6d
Pick up latest markdown language service (#176425) 2023-03-07 20:38:37 +01:00
Matt Bierner ed04b28c4d
Markdown custom eslint rules should not automatically apply to server (#166068) 2023-03-07 11:13:13 -08:00
Matt Bierner d0ad7c09bb
Fix details blocks being auto closed on markdown preview changes (#176330)
Fixes #175353
2023-03-07 02:36:38 +01:00
Matt Bierner 7570fadcce
Split uri-lists on \r\n for markdown drop (#175552)
Fixes #175547
2023-02-27 17:55:04 +01:00
Matt Bierner b980b86066
Pick up latest markdown language service (#174881)
For #174005
2023-02-22 15:14:23 +01:00
Matt Bierner 784bbdab8f
Allowing configuring if markdown inserts a .md when completing paths to markdown files (#174882)
Fixes #174005
2023-02-21 08:07:31 +01:00
Masaki Mori 1a79e7eb63
Fix #173735 (#174149)
* Fix #173735

* Fix #173735
2023-02-20 16:50:48 +00:00
Ely Ronnen 59f6d52062
fix #174711 Show Source command in Markdown custom editor (#174712)
fix #174711
2023-02-20 16:01:36 +00:00
Matt Bierner 34c620efbe
Hook up new markdown workspace header suggestion setting (#174004)
Fixes #172977

Also fixes the settingsTree matching settings ids too eagerly
2023-02-10 09:09:00 +01:00
Ely Ronnen 5b79b91838
Fix #173869 marking active line for code elements too in markdown pre… (#173870)
Fix #173869 marking active line for code elements too in markdown preview
2023-02-08 20:25:54 +00:00
Logan Ramos 8e6bcc9b9e
Bump module to new package (#173599) 2023-02-06 12:29:36 -08:00
Matt Bierner c35c98fc00
Pick up latest markdown language server (#173234)
For #172977
2023-02-03 06:46:30 +01:00
ibuky 9894ae8700
fix#171379 (#172175)
Co-authored-by: VTX0 <VTX0>
2023-02-01 00:35:02 +00:00
Arthur 934e0ee5d8
Fix #170706 (#172842) 2023-02-01 00:34:02 +00:00
Matt Bierner c18f80a2d4
Pass translations down to Markdown Language Server (#172884)
Fixes #172060
2023-01-31 06:29:41 +01:00
Matt Bierner 4630d8e4de
Remove more implicit activation events from built-in extensions (#172838) 2023-01-30 17:25:56 -08:00
Matt Bierner 10ffbae8ae
Use more restrictive lib for markdown language server (#172873) 2023-01-30 16:52:58 -08:00
Matt Bierner e4b323c098
Allow <source> tags in rendered markdown (#172063)
Fixes #171330
2023-01-23 21:07:25 +01:00
Logan Ramos 8cea434dec
Remove unused proposals (#172035) 2023-01-23 19:09:07 +01:00
Daniel Imms e29f8fd78f
Remove .only from test (#170970) 2023-01-10 16:14:18 +01:00
Logan Ramos 4acf2d9b46
Update the telemetry modules (#170512)
Update the module
2023-01-03 15:10:45 -05:00
Matt Bierner fc763d98df
Re-apply markdown copy files setting (#169661)
* Revert "Revert "Add experimental setting to define where files should be copied for markdown (#169454)" (#169615)"

This reverts commit b2121c2dbe.

* Fix tests

These paths should always use `/`
2022-12-20 11:04:51 -08:00
Christof Marti b2121c2dbe
Revert "Add experimental setting to define where files should be copied for markdown (#169454)" (#169615)
This reverts commit 1d6b47a005.
2022-12-20 10:03:12 +01:00
Matt Bierner 1d6b47a005
Revert 1d0a9f9e63 (#169578)
Resubmits the original PR with test fixes for windows
2022-12-19 14:25:37 -08:00
Benjamin Pasero 1d0a9f9e63
Revert "Add experimental setting to define where files should be copied for markdown" (#169492)
Revert "Add experimental setting to define where files should be copied for markdown (#169454)"

This reverts commit 09c0b1f799.
2022-12-18 14:11:45 -08:00
Matt Bierner 09c0b1f799
Add experimental setting to define where files should be copied for markdown (#169454)
For #157043
2022-12-16 16:23:59 -08:00
Daniel Imms 925b335bb9
Replace other non-hyphenated double-click cases
I used ^[^*\/\/]+double click to find the non-comment cases
2022-12-15 10:54:54 -08:00
Logan Ramos b1076b41f3
Bump telemetry packages (#169283) 2022-12-15 17:29:10 +01:00
Matt Bierner 57dd298b47
Add typings for test runner scripts (#169196) 2022-12-15 02:19:24 +01:00
Matt Bierner ac88f33e2c
Revert "Fix: New md file scrolls to Top. (#164999)" (#168224)
This reverts commit 54543cf5bf.
2022-12-06 22:50:30 +01:00
Matt Bierner d62fb120a4
Pick up latest markdown language server (#167869) 2022-12-05 21:13:24 +01:00
Matt Bierner 9b3371e6e3
Fix path sep for markdown drop on windows (#167862)
Fixes #167824
2022-12-01 19:27:21 +01:00
Matt Bierner 3b29d21a83
Dynamically register markdown completions and document highlights (#167451)
Fixes #165920
2022-11-28 20:56:55 +00:00
Matt Bierner 107d3ab28c
Fix markdown scrolling between elements being too jumpy (#166746)
Fixes #165055

We need to consider the distance between the end of the previous element and start of the next element. Previously we were taking distance from start of the previous to start of the next
2022-11-18 13:02:56 -08:00
Greg Van Liew 816f31f691
More settings description tuning (#166429) 2022-11-16 09:33:33 -08:00
Johannes Rieken 3ffb834054
Merge branch 'main' into joh/rewrite-privates 2022-11-16 10:20:49 +01:00
Matt Bierner edccbd1307
Pick up latest markdown language server (#166404)
Also removes some duplicated files
2022-11-15 18:27:22 -08:00
Matt Bierner 04ef3dad8f
Adopt @vscode/l10n for markdown language server (#165880) 2022-11-15 22:56:12 +01:00
Johannes 5912ad3ff1
Merge branch 'main' into joh/rewrite-privates 2022-11-15 09:44:34 +01:00
Matt Bierner 0b9121953f
Added mangling loader for ts files in extensions 2022-11-14 16:34:04 -08:00
Greg Van Liew 27a550f451
Settings description edits (#166315)
* Settings description edits

* Remove unnecessary trailing line returns
2022-11-14 13:47:54 -08:00
Logan Ramos 73d882bcf7
Update telemetry package (#166292) 2022-11-14 09:30:33 -08:00
Matt Bierner a62879bb46
Try computing windows paths correctly on markdown drop (#166077)
Fixes #165352
2022-11-13 15:03:05 -08:00
Matt Bierner ca15dea96b
Pick up latest dompurify and typings for vscode-markdown-languageservice (#166062)
Pick up latest typings from vscode-markdown-languageservice
2022-11-10 21:58:16 -08:00
Marina Miyaoka aa37e17423
Do not preprocess Unicode newlines in Markdown preview (#166026)
Revert LS PS preprocessing in Markdown preview
2022-11-10 19:46:43 +00:00
Debayan Ganguly 54543cf5bf
Fix: New md file scrolls to Top. (#164999)
Fixes #164071.
2022-11-09 13:48:39 -08:00
Logan Ramos bf1697d98c
Consume proposed telemetry API (#165862)
* Consume proposed telemetry API

* Update webpack
2022-11-08 21:58:28 -05:00
Matt Bierner cd29f751eb
Adopt l10n for markdown extension (#165448)
For #164438

Also makes our eslint rules understand `vscode.l10n.t(`
2022-11-04 09:49:49 +01:00
Hugh Lilly 190db489e0
Markdown lang preview settings description (#165109)
* Change descriptions to just say “Enable…”

Previously these said “Enable or disable…”, which in the context of a tick box doesn’t make sense.

* Change “Enable/disable” wording in descriptions
2022-11-01 15:48:59 -07:00
Matt Bierner 4bf630f00e
Pick up latest markdown language service (#165093) 2022-10-31 19:52:21 -07:00