microsoft / vscode-edge-devtools

A VSCode extension that allows you to use browser devtools from within the editor. The devtools will connect to an instance of Microsoft Edge giving you the ability to alter CSS styling, perform diagnostics, and debugging. Get it now at http://aka.ms/devtools-for-code
https://docs.microsoft.com/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension
MIT License
735 stars 246 forks source link

Remember Last Selected Device Emulator Across Sessions #2026

Open flyyuan opened 4 months ago

flyyuan commented 4 months ago

Is your feature request related to a problem? Please describe. Yes, currently, every time I open a new webview window in vscode-edge-devtools, I have to manually switch to the device emulator I want to use. This process is cumbersome and interrupts the development workflow.

Describe the solution you'd like I would like vscode-edge-devtools to remember the last selected device emulator (emulatedDevices) across sessions, similar to how Chrome DevTools operates. This feature would significantly enhance the user experience by eliminating the need to repeatedly select the desired emulator for each new webview window.

Describe alternatives you've considered N/A

Additional context This enhancement would streamline the development process, especially for developers who frequently test their web applications across different device emulators. Remembering the last selected emulator would reduce repetitive tasks and improve efficiency.

If deemed necessary, I am willing to contribute by submitting a PR to implement this improvement.

AB#49074473

flyyuan commented 4 months ago

@vidorteg Plan to store the last emulator selection in context.globalState and retrieve it to set as the default for new screen webviews upon launch.

captainbrosset commented 4 months ago

Seems like a useful feature request. Marking as such.