jaktestowac / vscode-playwright-helpers

Visual Studio Code extension with commands for Playwright🎭
https://marketplace.visualstudio.com/items?itemName=jaktestowac-pl.playwright-helpers
MIT License
3 stars 1 forks source link

Feature Request: Right click on item with context menu #2

Open doggy8088 opened 2 months ago

doggy8088 commented 2 months ago

At this moment, the context menu on the items only shows Cut/Copy/Paste.

image

I'd like to suggest that put some useful functions on that context menu. Such as,

  1. Paste & run
  2. Paste
  3. Add to favorites
Freudenberger commented 2 months ago

Partially done in v1.0.4.

For now there are two options in context menu:

I need to rethink how to add option Add to fav while currently all login responsible for this is on the front-end (webview script).

doggy8088 commented 2 months ago

Because of the Add to fav function, I thought maybe we could add an Add to package.json function, directly adding the command to the scripts section of package.json. Then, it will show up in the PLAYWRIGHT SCRIPTS pane.

image

Freudenberger commented 2 months ago

I need to rethink how to handle this 🤔

On one hand - it might be useful to store prepared command for later in e.g. package.json. On the other hand - it may not be safe to modify package.json

Also this idea might be correlated with #3