mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Fix memory leak caused by listeners to nulToken (#84940)
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
const nulTokenSource = new vscode.CancellationTokenSource();
|
||||
const noopDisposable = vscode.Disposable.from();
|
||||
|
||||
export const nulToken = nulTokenSource.token;
|
||||
export const nulToken: vscode.CancellationToken = {
|
||||
isCancellationRequested: false,
|
||||
onCancellationRequested: () => noopDisposable
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user