fixed screen reader bug in query history (#17937)
Co-authored-by: Lauren Nathan <laurennathan@microsoft.com>
This commit is contained in:
Родитель
539edeba4f
Коммит
81d15c7aeb
|
@ -671,6 +671,12 @@
|
|||
<trans-unit id="dismiss">
|
||||
<source xml:lang="en">Dismiss</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="querySuccess">
|
||||
<source xml:lang="en">Query succeeded</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="queryFailed">
|
||||
<source xml:lang="en">Query failed</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import * as vscode from 'vscode';
|
||||
import * as path from 'path';
|
||||
import * as os from 'os';
|
||||
import * as LocalizedConstants from '../constants/localizedConstants';
|
||||
|
||||
/**
|
||||
|
@ -51,7 +52,8 @@ export class QueryHistoryNode extends vscode.TreeItem {
|
|||
this._isSuccess = isSuccess;
|
||||
this._connectionLabel = connectionLabel;
|
||||
this.iconPath = this._isSuccess ? this.successIcon : this.failureIcon;
|
||||
this.tooltip = tooltip;
|
||||
const queryStatusLabel = this._isSuccess ? LocalizedConstants.querySuccess : LocalizedConstants.queryFailed;
|
||||
this.tooltip = `${tooltip}${os.EOL}${os.EOL}${queryStatusLabel}`;
|
||||
this.contextValue = QueryHistoryNode.contextValue;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче