Windows: Ctrl+G cannot launch code-insiders --wait
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
### 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
コントリビューションガイド
調査の方向性
関連する issue #1882 を読み、Windows 上で CLI がエディターコマンドをどのように解決して起動するかを追跡します。`code-insiders --wait` と `.cmd` ラッパーを使って PowerShell のケースを再現し、その後、報告されたエラーなしにエディターが開き、prompt ファイルが閉じられるまで待機することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell, shell
- 領域
- cli, operating-systems
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 56/100