提交 145bcd3a 编写于 作者: R rebornix

Insert new code cell should always use available languages.

上级 d536903a
......@@ -1435,6 +1435,11 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
language = this.viewModel.resolvedLanguages[0] || 'plaintext';
}
}
if (this.viewModel.resolvedLanguages.indexOf(language) < 0) {
// the language no longer exists
language = this.viewModel.resolvedLanguages[0] || 'plaintext';
}
} else {
language = 'markdown';
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册