Windows: Ctrl+G cannot launch code-insiders --wait
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Lisez l’issue associée #1882 et retracez la façon dont la CLI résout et lance les commandes de l’éditeur sous Windows. Reproduisez le cas PowerShell avec `code-insiders --wait` et le wrapper `.cmd`, puis vérifiez que l’éditeur s’ouvre et attend la fermeture du fichier de prompt sans les erreurs signalées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- powershell, shell
- Domaine
- cli, operating-systems
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 56/100