diff options
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 072a881c3..72dbcc3a8 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -4414,6 +4414,9 @@ fn request( request: TscRequest, token: CancellationToken, ) -> Result<Value, AnyError> { + if token.is_cancelled() { + return Err(anyhow!("Operation was cancelled.")); + } let (performance, id) = { let op_state = runtime.op_state(); let mut op_state = op_state.borrow_mut(); |