提交 7a070565 编写于 作者: R rebornix

fix #107917

上级 59f0af3b
......@@ -1483,7 +1483,7 @@ export class ChangeCellLanguageAction extends NotebookCellAction {
const selection = await quickInputService.pick(picks, { placeHolder: localize('pickLanguageToConfigure', "Select Language Mode") }) as ILanguagePickInput | undefined;
if (selection && selection.languageId) {
if (selection.languageId === 'markdown' && context.cell?.language !== 'markdown') {
const newCell = await changeCellToKind(CellKind.Markdown, { cell: context.cell, notebookEditor: context.notebookEditor });
const newCell = await changeCellToKind(CellKind.Markdown, { cell: context.cell, notebookEditor: context.notebookEditor }, 'markdown');
if (newCell) {
context.notebookEditor.focusNotebookCell(newCell, 'editor');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册