Skip to content

Commit

Permalink
Re microsoft/vscode-jupyter#11904, remove detail from mru kernel pick…
Browse files Browse the repository at this point in the history
…er source.
  • Loading branch information
rebornix committed Jan 18, 2023
1 parent fc4fba3 commit a20c96e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
});
}
Expand All @@ -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
};
Expand All @@ -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);
Expand Down

0 comments on commit a20c96e

Please sign in to comment.