open-in-editor guesses `code` and opens VS Code instead of the session IDE
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js
- Área
- developer-experience
Línea de trabajo
Start by reading launchEditor and guessEditor, especially the Linux editor list and the code that launches the selected binary. Check how the process environment exposes VSCODE_GIT_ASKPASS_NODE and how the project tests editor detection. Done means the session’s remote CLI is preferred when available, cursor is not shadowed by code, and a Windows shim is avoided when a Linux remote CLI exists.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
launchEditor(target) with no editor argument opens Windows VS Code when the dev server is running in WSL from Cursor.
What happens
Vite DevTools Pick element calls launchEditor(path) and does not pass an editor. On Linux, guessEditor scans ps and returns the first name in COMMON_EDITORS_LINUX that occurs as a substring. code is listed before cursor. The binary that then runs is code on PATH.
In this WSL session that binary is the Windows shim:
/mnt/c/Program Files/Microsoft VS Code/bin/code
So Pick element opens VS Code.
Why the session IDE is invisible
The Cursor window is on Windows. ps inside WSL does not show it, so the scan cannot pick cursor.
The editor for this session is the remote CLI next to VSCODE_GIT_ASKPASS_NODE:
$VSCODE_GIT_ASKPASS_NODE → <commit>/node
remote CLI → <commit>/bin/remote-cli/cursor
launch-editor never reads VSCODE_GIT_ASKPASS_NODE. A cursor remote CLI on PATH is also ignored, because detection uses ps, not command -v.
LAUNCH_EDITOR does select the right program when it is set to that remote CLI. Nothing sets it automatically.
Expected
Open-in-editor should use the IDE that owns the session.
- Prefer the remote CLI beside
VSCODE_GIT_ASKPASS_NODEwhen that file exists (cursororcode). - Do not let a substring match of
codewin overcursor. - Do not run a
/mnt/.../codeWindows shim when a Linux remote CLI for the current session exists.
This is not a request to hard-code Cursor. The same gap exists for any editor whose UI runs on the Windows side of WSL while the dev server runs in Linux.
- Lenguaje dominante
- JavaScript
- Estrellas
- 726
- Forks
- 102
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vitejs/launch-editor
-
Better support for terminal editors (nvim, helix): avoid `stdio: 'inherit'`, reuse running instancesAbierto
Dificultad 2/5 Medio día Aptitud para principiantes 50/100
vitejs/launch-editor#161 ·
-
Dependency DashboardAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
vitejs/launch-editor#121 ·
-
Google Antigravity无法使用Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
vitejs/launch-editor#115 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
vitejs/launch-editor#107 ·
-
Zed editor binary can also be called `zeditor` on some linux distros since `zed` is already takenPosiblemente ocupada @0froq la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
vitejs/launch-editor#103 · 6 reacciones ·
Todos los issues de vitejs/launch-editor
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
web-platform-tests/wpt#65844 ·
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Kanevry/session-orchestrator#108 ·
-
PHP 8.6: "Returning a value from a constructor is deprecated" in app/Common/Models/Model.phpAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
andromarces/agent-loops#2055 ·
Los mantenedores suelen responder en 1 día