Merge pull request #129788 from xisui-MSFT/dev/xisui/fix_129533

Improve accessibility in disassembly view
This commit is contained in:
Isidor Nikolic 2021-08-02 12:23:30 +02:00 committed by GitHub
commit 3237175815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -562,16 +562,10 @@ class AccessibilityProvider implements IListAccessibilityProvider<IDisassembledI
getAriaLabel(element: IDisassembledInstructionEntry): string | null {
let label = '';
if (element.isBreakpointSet) {
label += localize('breakpointIsSet', "Breakpoint is set");
} else if (element.allowBreakpoint) {
label += localize('breakpointAllowed', "Can set breakpoint");
}
const instruction = element.instruction;
label += `, ${localize('instructionAddress', "Instruction address")}: ${instruction.address}`;
label += `${localize('instructionAddress', "Address")}: ${instruction.address}`;
if (instruction.instructionBytes) {
label += `, ${localize('instructionBytes', "Instruction bytes")}: ${instruction.instructionBytes}`;
label += `, ${localize('instructionBytes', "Bytes")}: ${instruction.instructionBytes}`;
}
label += `, ${localize(`instructionText`, "Instruction")}: ${instruction.instruction}`;