Guide the false-positive case towards the setting (#27893)

This commit is contained in:
Alex Dima 2017-06-02 11:52:59 +02:00
parent ec16430392
commit 2602410f20

View file

@ -226,7 +226,8 @@ const nlsMultiSelection = nls.localize('multiSelection', "{0} selections");
const nlsEOLLF = nls.localize('endOfLineLineFeed', "LF");
const nlsEOLCRLF = nls.localize('endOfLineCarriageReturnLineFeed', "CRLF");
const nlsTabFocusMode = nls.localize('tabFocusModeEnabled', "Tab moves focus");
const nlsScreenReaderDetected = nls.localize('screenReaderDetected', "Screen reader detected");
const nlsScreenReaderDetected = nls.localize('screenReaderDetected', "Screen Reader detected");
const nlsScreenReaderDetectedTitle = nls.localize('screenReaderDetectedExtra', "If you are not using a Screen Reader, please change the setting `editor.accessibilitySupport` to off.");
function _setDisplay(el: HTMLElement, desiredValue: string): void {
if (el.style.display !== desiredValue) {
@ -282,6 +283,7 @@ export class EditorStatus implements IStatusbarItem {
this.screenRedearModeElement = append(this.element, $('a.editor-status-screenreadermode.status-bar-info'));
this.screenRedearModeElement.textContent = nlsScreenReaderDetected;
this.screenRedearModeElement.title = nlsScreenReaderDetectedTitle;
hide(this.screenRedearModeElement);
this.selectionElement = append(this.element, $('a.editor-status-selection'));