microsoft / microsoft/TypeScript

tsc is not resposive to `ctrl-c`

未关闭
#63,856 2 条评论 9 个 reaction 已指派 1 人 已被 @jakebailey 认领 在 GitHub 查看
Needs Investigation
主要语言
Go
星标
111k
派生
14.3k
平均合并
2 天 4 小时
30 天内合并 PR
132

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。