Skip to content

Commit 5071499

Browse files
authored
Merge branch 'main' into main
2 parents 09edf05 + 1a2790b commit 5071499

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/workbench/contrib/accessibility/browser/accessibleView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class AccessibleView extends Disposable {
107107
const settingKey = `accessibility.verbosity.${provider.id}`;
108108
const value = this._configurationService.getValue(settingKey);
109109
const readMoreLink = provider.options.readMoreUrl ? localize("openDoc", "\nPress H now to open a browser window with more information related to accessibility.\n") : '';
110-
const disableHelpHint = provider.options.type && value ? localize('disable-help-hint', '\nTo disable the `accessibility.verbosity` hint for this feature, press D now.\n') : '\n';
110+
const disableHelpHint = provider.options.type === AccessibleViewType.HelpMenu && !!value ? localize('disable-help-hint', '\nTo disable the `accessibility.verbosity` hint for this feature, press D now.\n') : '\n';
111111
const fragment = provider.provideContent() + readMoreLink + disableHelpHint + localize('exit-tip', 'Exit this menu via the Escape key.');
112112

113113
this._getTextModel(URI.from({ path: `accessible-view-${provider.id}`, scheme: 'accessible-view', fragment })).then((model) => {
@@ -126,7 +126,7 @@ class AccessibleView extends Disposable {
126126
this._register(this._editorWidget.onKeyUp((e) => {
127127
if (e.keyCode === KeyCode.Escape) {
128128
this._contextViewService.hideContextView();
129-
} else if (e.keyCode === KeyCode.KeyD) {
129+
} else if (e.keyCode === KeyCode.KeyD && this._configurationService.getValue(settingKey)) {
130130
this._configurationService.updateValue(settingKey, false);
131131
} else if (e.keyCode === KeyCode.KeyH && provider.options.readMoreUrl) {
132132
const url: string = provider.options.readMoreUrl!;

src/vs/workbench/contrib/chat/browser/chatInputPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
101101
const verbose = this.configurationService.getValue<boolean>(AccessibilityVerbositySettingId.Chat);
102102
if (verbose) {
103103
const kbLabel = this.keybindingService.lookupKeybinding('chat.action.accessibilityHelp')?.getLabel();
104-
return kbLabel ? localize('actions.chat.accessibiltyHelp', "Chat Input, Type code here and press enter to run. Use {0} for Chat Accessibility Help.", kbLabel) : localize('chatInput.accessibilityHelpNoKb', "Chat Input, Type code here and press Enter to run. Use the Chat Accessibility Help command for more information.");
104+
return kbLabel ? localize('actions.chat.accessibiltyHelp', "Chat Input, Type to ask questions or type / for topics, press enter to send out the request. Use {0} for Chat Accessibility Help.", kbLabel) : localize('chatInput.accessibilityHelpNoKb', "Chat Input, Type code here and press Enter to run. Use the Chat Accessibility Help command for more information.");
105105
}
106106
return localize('chatInput', "Chat Input");
107107
}

0 commit comments

Comments
 (0)