From a20c96e2eefb7a42dc7f332c139893118cb75fd1 Mon Sep 17 00:00:00 2001 From: rebornix Date: Tue, 17 Jan 2023 16:24:28 -0800 Subject: [PATCH] Re microsoft/vscode-jupyter#11904, remove detail from mru kernel picker source. --- .../browser/viewParts/notebookKernelQuickPickStrategy.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.ts b/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.ts index e3cc822b30730..4f7518cedda4f 100644 --- a/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.ts +++ b/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.ts @@ -786,13 +786,11 @@ export class KernelPickerMRUStrategy extends KernelPickerStrategyBase { if (group.length > 1) { quickPickItems.push({ label: source, - detail: localize('selectKernelFromExtensionDetail', "Kernels: {0}", group.map(kernel => kernel.label).join(', ')), kernels: group }); } else { quickPickItems.push({ label: group[0].label, - detail: source, kernel: group[0] }); } @@ -804,7 +802,6 @@ export class KernelPickerMRUStrategy extends KernelPickerStrategyBase { return { id: typeof action.command! === 'string' ? action.command! : action.command!.id, label: action.label, - detail: action.detail, description: action.description, command: action.command }; @@ -814,8 +811,7 @@ export class KernelPickerMRUStrategy extends KernelPickerStrategyBase { const res: SourcePick = { action: sourceAction, picked: false, - label: sourceAction.action.label, - detail: (sourceAction.action as MenuItemAction)?.item?.source?.title + label: sourceAction.action.label }; quickPickItems.push(res);