Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/markdown-language-features/src/util/cancellation.ts
3292 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import * as vscode from 'vscode';
7
8
export const noopToken: vscode.CancellationToken = new class implements vscode.CancellationToken {
9
private readonly _onCancellationRequestedEmitter = new vscode.EventEmitter<void>();
10
onCancellationRequested = this._onCancellationRequestedEmitter.event;
11
12
get isCancellationRequested() { return false; }
13
};
14
15