microsoft / microsoft/TypeScript
tsc is not resposive to `ctrl-c`
Offen
#63,856
2 Kommentare
9 Reaktionen
1 zugewiesene Person
Beansprucht von @jakebailey
Auf GitHub ansehen
Needs Investigation
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
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?
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.