Skip to content

Commit

Permalink
fix(monaco): requests always cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Sep 7, 2024
1 parent 74d897f commit defadbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/monaco/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export class WorkerLanguageService {
const { pendingRequests } = this;
const token: CancellationToken = {
get isCancellationRequested() {
return !!pendingRequests.has(requestId);
return !pendingRequests.has(requestId);
},
onCancellationRequested(cb) {
let callbacks = pendingRequests.get(requestId);
Expand Down

0 comments on commit defadbc

Please sign in to comment.