Merge pull request #129788 from xisui-MSFT/dev/xisui/fix_129533
Improve accessibility in disassembly view
This commit is contained in:
commit
3237175815
1 changed files with 2 additions and 8 deletions
|
@ -562,16 +562,10 @@ class AccessibilityProvider implements IListAccessibilityProvider<IDisassembledI
|
||||||
getAriaLabel(element: IDisassembledInstructionEntry): string | null {
|
getAriaLabel(element: IDisassembledInstructionEntry): string | null {
|
||||||
let label = '';
|
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;
|
const instruction = element.instruction;
|
||||||
label += `, ${localize('instructionAddress', "Instruction address")}: ${instruction.address}`;
|
label += `${localize('instructionAddress', "Address")}: ${instruction.address}`;
|
||||||
if (instruction.instructionBytes) {
|
if (instruction.instructionBytes) {
|
||||||
label += `, ${localize('instructionBytes', "Instruction bytes")}: ${instruction.instructionBytes}`;
|
label += `, ${localize('instructionBytes', "Bytes")}: ${instruction.instructionBytes}`;
|
||||||
}
|
}
|
||||||
label += `, ${localize(`instructionText`, "Instruction")}: ${instruction.instruction}`;
|
label += `, ${localize(`instructionText`, "Instruction")}: ${instruction.instruction}`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue