Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework markdown paste resource #201838

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Rework markdown paste resource #201838

merged 1 commit into from
Jan 4, 2024

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Jan 4, 2024

Fixes #184980

This refactors much of the logic around markdown paste/drop. PR got a little large but the main highlights are:

  • Allow using a custom snippet for inserted audio/video
  • Merge the drop/paste resource provider classes since these are so similar
  • Enable smart pasting of url text by default
  • Refactor url paste logic
  • For now, disable the behavior where url paste could paste a combination of markdown and plain uris. In practice this is confusing, especially because our labels for this were wrong. We can always reintroduce this later if multicursor users find it useful

Fixes #184980

This refactors much of the logic around markdown paste/drop. PR got a little large but the main highlights are:

- Allow using a custom snippet for inserted audio/video
- Merge the drop/paste resource provider classes since these are so similar
- Enable smart pasting of url text by default
- Refactor url paste logic
- For now, disable the behavior where url paste could paste a combination of markdown and plain uris. In practice this is confusing, especially because our labels for this were wrong. We can always reintroduce this later if multicursor users find it useful
@mjbvz mjbvz enabled auto-merge (squash) January 4, 2024 20:37
@mjbvz mjbvz added this to the December / January 2024 milestone Jan 4, 2024
@mjbvz mjbvz merged commit 26ef59c into main Jan 4, 2024
7 checks passed
@mjbvz mjbvz deleted the elaborate-egret branch January 4, 2024 23:59
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow customizing the snippet used for inserting audio/video into markdown files
2 participants