LSPs are initialized before running the sessionStart hook
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
### 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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez l’ordre avec lsp.json, hooks/copilot-hooks.json et session-start.ps1, puis comparez les journaux de démarrage autour de l’initialisation de LSP et du hook session-start. C’est terminé lorsque le hook session-start s’achève avant l’initialisation du LSP configuré.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- powershell
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100