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

Test: Paste as functionality #183681

Closed
3 tasks done
mjbvz opened this issue May 28, 2023 · 0 comments
Closed
3 tasks done

Test: Paste as functionality #183681

mjbvz opened this issue May 28, 2023 · 0 comments
Labels
testplan-item verified Verification succeeded
Milestone

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented May 28, 2023

Test for #174465

Complexity: 4

Create Issue


Summary

The new paste as functionality allows extensions to control how content is pasted. This feature has now been turned on by default. You can trigger it by pasting content into a file, by using the new Paste as... command. If there are multiple ways to paste, the new paste selector UX lets you switch between them

Testing

First test basic pasting. You can use Markdown to test this new feature

  • Open a Markdown file
  • Copy a file from VS Code's explorer or from your OS and try pasting it into the editor
    • The content should paste, but you should also see a widget that lets you select how the content is pasted
  • Try using the widget to switch between different ways of pasting (you should see: paste as markdown link/image, paste as absolute path, and paste as relative path if the file is part of the current workspace)
  • Try pasting into multiple cursor locations
  • Confirm you can turn off this feature using editor.pasteAs.enabled

Now test the new paste as command. This lets you first select how content should be pasted

  • Also in a markdown file
  • Copy a file from VS Code's explorer or from your OS
  • Run Paste as...
    • Confirm you see a quick input that lets you select how the content is pasted

Try setting up a keybinding for a specific paste as handler:

	{
		"key": "cmd+k x",
		"command": "editor.action.pasteAs",
		"when": "editorTextFocus",
		"args": {
			"id": "uri"	
		}
	}
  • Make sure this keybinding pastes using the expected handler (you can get the ids from the paste as... ui)
@mjbvz mjbvz added this to the May 2023 milestone May 28, 2023
@amunger amunger removed their assignment May 30, 2023
@lramos15 lramos15 removed their assignment May 30, 2023
@DonJayamanne DonJayamanne removed their assignment May 30, 2023
@DonJayamanne DonJayamanne added the verified Verification succeeded label May 30, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants