Skip to content

Commit

Permalink
fix #101365.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Aug 14, 2020
1 parent 4a316b0 commit 95b3a0a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { localize } from 'vs/nls';
import * as DOM from 'vs/base/browser/dom';
import { MenuEntryActionViewItem } from 'vs/platform/actions/browser/menuEntryActionViewItem';
import { MenuItemAction } from 'vs/platform/actions/common/actions';
Expand Down Expand Up @@ -73,5 +74,6 @@ export class CellLanguageStatusBarItem extends Disposable {
private render(): void {
const modeId = this.cell?.cellKind === CellKind.Markdown ? 'markdown' : this.modeService.getModeIdForLanguageName(this.cell!.language) || this.cell!.language;
this.labelElement.textContent = this.modeService.getLanguageName(modeId) || this.modeService.getLanguageName('plaintext');
this.labelElement.title = localize('notebook.cell.status.language', "Select Cell Language Mode");
}
}

0 comments on commit 95b3a0a

Please sign in to comment.