From 3c1fa1b286b7f8922213f5d5e04a6633327d652c Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 11 Jun 2021 16:22:31 -0700 Subject: [PATCH] Pass in explicit language mode when converting cell to markdown Fixes #126069 --- .../workbench/contrib/notebook/browser/contrib/coreActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/coreActions.ts b/src/vs/workbench/contrib/notebook/browser/contrib/coreActions.ts index bfed6ef00ef..3b0d367feb6 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/coreActions.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/coreActions.ts @@ -925,7 +925,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookCellAction { } async runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise { - await changeCellToKind(CellKind.Markup, context); + await changeCellToKind(CellKind.Markup, context, 'markdown'); } });