launch-editor icon indicating copy to clipboard operation
launch-editor copied to clipboard

Empty browser window/tab is left after opening `__open-in-editor` link from JS console/terminal.

Open Leftium opened this issue 11 months ago • 0 comments

A side effect of opening an __open-in-editor link from the terminal/console is an empty browser window is left opened.

To reproduce:

  1. Start vite dev server on port 5173
  2. Paste http://localhost:5173/__open-in-editor?file=/ into browser JS console.
  3. Click resulting link.

May also echo link to terminal and CTRL+click the link.

Work-around:

Context:

I wrote a utility function that outputs the __open-in-editor link for the file it was called from.

Image

Image

Leftium avatar Jan 31 '25 17:01 Leftium