Skip to content

Commit ebb889e

Browse files
committed
Revert "fix microsoft#4156"
This reverts commit ebde1b6.
1 parent 13dd130 commit ebb889e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import { IChatWidgetService } from 'vs/workbench/contrib/chat/browser/chat';
1515
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
1616
import { EditMode } from 'vs/workbench/contrib/interactiveEditor/common/interactiveEditor';
1717

18-
export const interactiveEditorHelpIntro = localize('interactiveSession.makeRequest', "Tab once to reach the make request button, which will re-run the request.");
19-
2018
export function getAccessibilityHelpText(accessor: ServicesAccessor, type: 'chat' | 'editor', currentInput?: string): string {
2119
const keybindingService = accessor.get(IKeybindingService);
2220
const configurationService = accessor.get(IConfigurationService);
@@ -26,7 +24,7 @@ export function getAccessibilityHelpText(accessor: ServicesAccessor, type: 'chat
2624
content.push(descriptionForCommand('chat.action.focus', localize('workbench.action.chat.focus', 'The Focus Chat command ({0}) focuses the chat request/response list, which can be navigated with UpArrow/DownArrow.',), localize('workbench.action.chat.focusNoKb', 'The Focus Chat List command focuses the chat request/response list, which can be navigated with UpArrow/DownArrow and is currently not triggerable by a keybinding.'), keybindingService));
2725
content.push(descriptionForCommand('workbench.action.chat.focusInput', localize('workbench.action.chat.focusInput', 'The Focus Chat Input command ({0}) focuses the input box for chat requests.'), localize('workbench.action.interactiveSession.focusInputNoKb', 'Focus Chat Input command focuses the input box for chat requests and is currently not triggerable by a keybinding.'), keybindingService));
2826
} else {
29-
content.push(interactiveEditorHelpIntro);
27+
content.push(localize('interactiveSession.makeRequest', "Tab once to reach the make request button, which will re-run the request."));
3028
const regex = /^(\/fix|\/explain)/;
3129
const match = currentInput?.match(regex);
3230
const command = match && match.length ? match[0].substring(1) : undefined;

src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorController.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import { IChatService } from 'vs/workbench/contrib/chat/common/chatService';
3838
import { INotebookEditorService } from 'vs/workbench/contrib/notebook/browser/services/notebookEditorService';
3939
import { CellUri } from 'vs/workbench/contrib/notebook/common/notebookCommon';
4040
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
41-
import { interactiveEditorHelpIntro } from 'vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp';
4241

4342
export const enum State {
4443
CREATE_SESSION = 'CREATE_SESSION',
@@ -413,9 +412,6 @@ export class InteractiveEditorController implements IEditorContribution {
413412
});
414413

415414
const typeListener = this._zone.widget.onDidChangeInput(() => {
416-
if (this._zone.widget.value.includes(interactiveEditorHelpIntro)) {
417-
return;
418-
}
419415
requestCts.cancel();
420416
});
421417

0 commit comments

Comments
 (0)