提交 33676982 编写于 作者: R Rob Lourens

Look up mode aliases for cell language

上级 fe27df1b
......@@ -715,7 +715,8 @@ export class CellLanguageStatusBarItem extends Disposable {
}
private render(): void {
this.labelElement.textContent = this.modeService.getLanguageName(this.cell!.language!) || this.modeService.getLanguageName('plaintext');
const modeId = this.modeService.getModeIdForLanguageName(this.cell!.language) || this.cell!.language;
this.labelElement.textContent = this.modeService.getLanguageName(modeId) || this.modeService.getLanguageName('plaintext');
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册