diff --git a/src/vs/workbench/contrib/notebook/browser/controller/editActions.ts b/src/vs/workbench/contrib/notebook/browser/controller/editActions.ts index d0cd5268444ae..f89f65af3bcef 100644 --- a/src/vs/workbench/contrib/notebook/browser/controller/editActions.ts +++ b/src/vs/workbench/contrib/notebook/browser/controller/editActions.ts @@ -370,9 +370,17 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction kernel.supportedLanguages); + languages = allSupportedLanguages.length > 0 ? allSupportedLanguages : languageService.getRegisteredLanguageIds(); + } const providerLanguages = new Set([ - ...(context.notebookEditor.activeKernel?.supportedLanguages ?? languageService.getRegisteredLanguageIds()), + ...languages, 'markdown' ]);