auchenberg / vscode-browser-preview

A real browser preview inside your editor that you can debug.
MIT License
4.39k stars 153 forks source link

Using vscode-browser-preview to retrieve cookies #168

Closed GuillaumeBlin closed 3 years ago

GuillaumeBlin commented 3 years ago

Hi, In an extension i'm designing, I need to connect to a service via a web page and retrieve the corresponding cookies. By now, i'm using puppeteer to launch an external chrome window. I would like to embed it into vscode directly and i though vscode-browser-preview may be of help to achieve so but i have no clue how to tackle this problem. Is there a way to launch vscode-browser-preview command and wait for a specific cookie to be set and retrieve it from my ts extension ? Thanks in advance. Best

GuillaumeBlin commented 3 years ago

Great work by the way :)

auchenberg commented 3 years ago

You might be able to use https://marketplace.visualstudio.com/items?itemName=ms-edgedevtools.vscode-edge-devtools to connect to the browser preview.

Closing as this is out of scope for the extension.