microsoft / microsoft/TypeScript

tsc is not resposive to `ctrl-c`

Aperta
#63,856 2 commenti 9 reazioni 1 assegnatario Vedi su GitHub

@jakebailey ci sta già lavorando.

Dal 15/7/2026.

Needs Investigation
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

When you run tsc and attempt to interrupt a build it does not respond instead it just complets the build

This is because typescript-go installs [signal handlers](https://github.com/microsoft/typescript-go/blob/8a749379d556f1bb4044218a1f94bc90fbfb6a03/cmd/tsgo/main.go#L28) to propagate sigterm and sigint to the `context.Context` object

However this is not always threaded all the way through the build

I prepared https://github.com/microsoft/typescript-go/pull/4592 to fix this, but the fix is non-trivial

Alternatively should we just _not_ install signal handlers and let normal behavior proceed?

Guida per i contributori

Apri la 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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.