github / github/copilot-cli

LSPs are initialized before running the sessionStart hook

未關閉
#3,112 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:plugins area:tools
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

I am writing a hook that will help keep my LSP install updated. However, I cannot update the LSP because copilot is launching it before running hooks. This seems out of order to me.

```
2026-05-04T23:34:50.080Z [DEBUG] LSP csharp server for Q:\source\TestConsole2: [Program] Language server initialized
...
2026-05-04T23:35:04.709Z [DEBUG] Executing hook: ./.github/hooks/scripts/session-start.ps1
```

### Affected version

GitHub Copilot CLI 1.0.41-0

### Steps to reproduce the behavior

1. Add a lsp.json
2. Configure an LSP
3. Add a hooks/copilot-hooks.json
4. Configure a session-start hook that runs a session-start.ps1
5. Add a session-start.ps1 which prints "Hello"
6. Start Copilot
7. Observe the logs

### Expected behavior

I expected that the session-start.ps1 would be complete prior to initializing LSPs.

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。