mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fix #208927
This commit is contained in:
parent
d42fad27b2
commit
6e9ba23ead
|
@ -25,8 +25,8 @@ import { IChatWidgetService } from 'vs/workbench/contrib/chat/browser/chat';
|
|||
import { IChatEditorOptions } from 'vs/workbench/contrib/chat/browser/chatEditor';
|
||||
import { ChatEditorInput } from 'vs/workbench/contrib/chat/browser/chatEditorInput';
|
||||
import { ChatViewPane } from 'vs/workbench/contrib/chat/browser/chatViewPane';
|
||||
import { IChatAgentService } from 'vs/workbench/contrib/chat/common/chatAgents';
|
||||
import { CONTEXT_CHAT_INPUT_CURSOR_AT_TOP, CONTEXT_CHAT_INPUT_HAS_AGENT, CONTEXT_CHAT_INPUT_HAS_TEXT, CONTEXT_CHAT_REQUEST_IN_PROGRESS, CONTEXT_IN_CHAT_INPUT, CONTEXT_IN_CHAT_SESSION, CONTEXT_PROVIDER_EXISTS, CONTEXT_REQUEST, CONTEXT_RESPONSE } from 'vs/workbench/contrib/chat/common/chatContextKeys';
|
||||
import { ChatAgentLocation, IChatAgentService } from 'vs/workbench/contrib/chat/common/chatAgents';
|
||||
import { CONTEXT_CHAT_INPUT_CURSOR_AT_TOP, CONTEXT_CHAT_INPUT_HAS_AGENT, CONTEXT_CHAT_INPUT_HAS_TEXT, CONTEXT_CHAT_LOCATION, CONTEXT_CHAT_REQUEST_IN_PROGRESS, CONTEXT_IN_CHAT_INPUT, CONTEXT_IN_CHAT_SESSION, CONTEXT_PROVIDER_EXISTS, CONTEXT_REQUEST, CONTEXT_RESPONSE } from 'vs/workbench/contrib/chat/common/chatContextKeys';
|
||||
import { IChatContributionService } from 'vs/workbench/contrib/chat/common/chatContributionService';
|
||||
import { chatAgentLeader } from 'vs/workbench/contrib/chat/common/chatParserTypes';
|
||||
import { IChatDetail, IChatService } from 'vs/workbench/contrib/chat/common/chatService';
|
||||
|
@ -211,7 +211,7 @@ export function registerChatActions() {
|
|||
super({
|
||||
id: 'chat.action.focus',
|
||||
title: localize2('actions.interactiveSession.focus', 'Focus Chat List'),
|
||||
precondition: CONTEXT_IN_CHAT_INPUT,
|
||||
precondition: ContextKeyExpr.and(CONTEXT_IN_CHAT_INPUT, CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.Panel)),
|
||||
category: CHAT_CATEGORY,
|
||||
keybinding: [
|
||||
// On mac, require that the cursor is at the top of the input, to avoid stealing cmd+up to move the cursor to the top
|
||||
|
|
Loading…
Reference in a new issue