Failed language-server startup leaks build discovery observers

Aperta
#440 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
devtools

Direzione di ricerca

The issue identifies the failed language-server startup path and the existing Windows VS Code lifecycle test, “a server that cannot launch leaves the status bar in Error, never Running.” Start by locating client.start(), build observer registration, and the cleanup on rejection, then run that lifecycle test. Done means observers are disposed on startup failure, retained by extension subscriptions after success, and the regression passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A failed language-server launch retains the build-completion notification listener, workspace-folder listener, and Signals effect. They are registered before client.start(), but the rejection path only disposes Razor HTML resources.

The existing unchanged real Windows VS Code lifecycle test a server that cannot launch leaves the status bar in Error, never Running reproduces it: context.subscriptions.length is 4, expected 1. Status assertions pass; the failure is retained build observers.

Fix: aggregate build observers into a Disposable, register before startup, dispose it on startup rejection, and add it to extension subscriptions only after successful startup. Private regression: unchanged failing test RED -> GREEN, then all 23 lifecycle and real build-completion refresh cases pass with the rebuilt extension bundle.

Lingua principale
TypeScript
Stelle
173
Fork
10
Merge medio
2h 18m
PR unite (30g)
74

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Nimblesite/SharpLsp

Tutte le issue di Nimblesite/SharpLsp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.