|
1 |
| -import type { QuickInputButton, QuickPick, QuickPickItem } from 'vscode'; |
| 1 | +import type { CancellationToken, QuickInputButton, QuickPick, QuickPickItem } from 'vscode'; |
2 | 2 | import { commands, ThemeIcon, Uri } from 'vscode';
|
3 | 3 | import { getAvatarUri } from '../../avatars';
|
4 | 4 | import type {
|
@@ -524,7 +524,12 @@ export class LaunchpadCommand extends QuickCommand<State> {
|
524 | 524 | quickpick.busy = true;
|
525 | 525 | try {
|
526 | 526 | await this.updateItemsDebouncer(async cancellationToken => {
|
527 |
| - await updateContextItems(this.container, context, { force: true, search: search }); |
| 527 | + await updateContextItems( |
| 528 | + this.container, |
| 529 | + context, |
| 530 | + { force: true, search: search }, |
| 531 | + cancellationToken, |
| 532 | + ); |
528 | 533 | if (cancellationToken.isCancellationRequested) {
|
529 | 534 | return;
|
530 | 535 | }
|
@@ -1396,8 +1401,9 @@ async function updateContextItems(
|
1396 | 1401 | container: Container,
|
1397 | 1402 | context: Context,
|
1398 | 1403 | options?: { force?: boolean; search?: string },
|
| 1404 | + cancellation?: CancellationToken, |
1399 | 1405 | ) {
|
1400 |
| - context.result = await container.launchpad.getCategorizedItems(options); |
| 1406 | + context.result = await container.launchpad.getCategorizedItems(options, cancellation); |
1401 | 1407 | if (container.telemetry.enabled) {
|
1402 | 1408 | updateTelemetryContext(context);
|
1403 | 1409 | }
|
|
0 commit comments