Merge pull request #208795 from microsoft/merogge/acc-view-tweaks

fix small issues w accessibiliity help
This commit is contained in:
Megan Rogge 2024-03-26 08:46:48 -07:00 committed by GitHub
commit 95b449d11a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -684,7 +684,7 @@ export class AccessibleView extends Disposable {
private _getAccessibleViewHelpDialogContent(providerHasSymbols?: boolean): string { private _getAccessibleViewHelpDialogContent(providerHasSymbols?: boolean): string {
const navigationHint = this._getNavigationHint(); const navigationHint = this._getNavigationHint();
const goToSymbolHint = this._getGoToSymbolHint(providerHasSymbols); const goToSymbolHint = this._getGoToSymbolHint(providerHasSymbols);
const toolbarHint = localize('toolbar', "Navigate to the toolbar (Shift+Tab))."); const toolbarHint = localize('toolbar', "Navigate to the toolbar (Shift+Tab).");
const chatHints = this._getChatHints(); const chatHints = this._getChatHints();
let hint = localize('intro', "In the accessible view, you can:\n"); let hint = localize('intro', "In the accessible view, you can:\n");
@ -720,7 +720,7 @@ export class AccessibleView extends Disposable {
if (insertIntoNewFileKb) { if (insertIntoNewFileKb) {
hint += localize('insertIntoNewFile', " - Insert the code block into a new file ({0}).\n", insertIntoNewFileKb); hint += localize('insertIntoNewFile', " - Insert the code block into a new file ({0}).\n", insertIntoNewFileKb);
} else { } else {
hint += localize('insertIntoNewFileNoKb', " - Insert the code block into a new file by configuring a keybinding for the Chat: Insert at Cursor command.\n"); hint += localize('insertIntoNewFileNoKb', " - Insert the code block into a new file by configuring a keybinding for the Chat: Insert into New File command.\n");
} }
if (runInTerminalKb) { if (runInTerminalKb) {
hint += localize('runInTerminal', " - Run the code block in the terminal ({0}).\n", runInTerminalKb); hint += localize('runInTerminal', " - Run the code block in the terminal ({0}).\n", runInTerminalKb);
@ -761,7 +761,7 @@ export class AccessibleView extends Disposable {
let goToSymbolHint = ''; let goToSymbolHint = '';
if (providerHasSymbols) { if (providerHasSymbols) {
if (goToSymbolKb) { if (goToSymbolKb) {
goToSymbolHint = localize('goToSymbolHint', 'Go to a symbol ({0})', goToSymbolKb); goToSymbolHint = localize('goToSymbolHint', 'Go to a symbol ({0}).', goToSymbolKb);
} else { } else {
goToSymbolHint = localize('goToSymbolHintNoKb', 'To go to a symbol, configure a keybinding for the command Go To Symbol in Accessible View'); goToSymbolHint = localize('goToSymbolHintNoKb', 'To go to a symbol, configure a keybinding for the command Go To Symbol in Accessible View');
} }