From 7c62095eb663f160889d64a7b24d0e970f144f39 Mon Sep 17 00:00:00 2001 From: Peng Lyu Date: Mon, 14 Nov 2022 12:37:36 -0800 Subject: [PATCH] Kernel picker MRU experiment (#166307) --- .../contrib/notebook/browser/notebook.contribution.ts | 6 ++++++ src/vs/workbench/contrib/notebook/common/notebookCommon.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts index 90098975a49..0f59dc9d80b 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts @@ -910,5 +910,11 @@ configurationRegistry.registerConfiguration({ type: 'string', tags: ['notebookLayout'] }, + [NotebookSetting.kernelPickerMRU]: { + markdownDescription: nls.localize('notebook.kernelPickerMRU', "Controls whether the kernel picker should show the most recently used kernels."), + type: 'boolean', + tags: ['notebookLayout'], + default: false + } } }); diff --git a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts index 8d997efc7c4..c033b37ceb8 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts @@ -925,7 +925,8 @@ export const NotebookSetting = { interactiveWindowCollapseCodeCells: 'interactiveWindow.collapseCellInputCode', outputLineHeight: 'notebook.outputLineHeight', outputFontSize: 'notebook.outputFontSize', - outputFontFamily: 'notebook.outputFontFamily' + outputFontFamily: 'notebook.outputFontFamily', + kernelPickerMRU: 'notebook.experimental.kernelPicker.mru' } as const; export const enum CellStatusbarAlignment {