mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 05:21:08 +01:00
pass in cancellation token
This commit is contained in:
@@ -153,6 +153,9 @@ vscode.window.registerTerminalCompletionProvider({
|
||||
result.push(createCompletionItem(terminalContext.cursorPosition, prefix, commandName, spec.description));
|
||||
}
|
||||
}
|
||||
if (token.isCancellationRequested) {
|
||||
return undefined;
|
||||
}
|
||||
return result.length ? result : undefined;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user