pass in cancellation token

This commit is contained in:
Megan Rogge
2024-11-13 15:53:47 -06:00
parent 064299ae35
commit 499475f2ff
6 changed files with 33 additions and 10 deletions

View File

@@ -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;
}
});