Windows: Ctrl+G cannot launch code-insiders --wait
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
### Bug
On Windows, `Ctrl+G` cannot launch VS Code Insiders when `$EDITOR` is set to the standard wait command:
```powershell
$env:EDITOR = 'code-insiders --wait'
```
The same command works directly from PowerShell.
### Repro
```powershell
$env:EDITOR = 'code-insiders --wait'
code-insiders --wait # works
copilot
# Press Ctrl+G
```
### Expected
Copilot CLI opens VS Code Insiders and waits for the prompt file to close.
### Actual
```text
✗ Error: Editor 'code-insiders --wait' not found. Check your $COPILOT_EDITOR, $VISUAL, or $EDITOR environment variable.
```
Using a `.cmd` wrapper also fails with `spawn EINVAL`.
### Notes
`code-insiders` resolves to a Windows `.cmd` shim, so this appears related to #1882. The fix is likely to handle Windows `.cmd` / `.bat` editor commands through `cmd /c` or `shell: true`, and to support editor commands with arguments such as `--wait`.
### Environment
- Windows
- PowerShell
- Copilot CLI 1.0.60
- VS Code Insiders
Guía de contribución
Línea de trabajo
Lee el issue relacionado #1882 y sigue cómo la CLI resuelve y ejecuta los comandos del editor en Windows. Reproduce el caso de PowerShell con `code-insiders --wait` y el wrapper `.cmd`, y verifica después que el editor se abre y espera a que se cierre el archivo de prompt sin los errores indicados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- powershell, shell
- Área
- cli, operating-systems
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 56/100