Fix memory leak caused by listeners to nulToken (#84940)

上级 3e0dab86
......@@ -5,6 +5,9 @@
import * as vscode from 'vscode';
const nulTokenSource = new vscode.CancellationTokenSource();
const noopDisposable = vscode.Disposable.from();
export const nulToken = nulTokenSource.token;
\ No newline at end of file
export const nulToken: vscode.CancellationToken = {
isCancellationRequested: false,
onCancellationRequested: () => noopDisposable
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册