mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
disable keybinding for startWithCurrentLine (#226302)
This commit is contained in:
@@ -10,12 +10,10 @@ import { IEditorContribution } from 'vs/editor/common/editorCommon';
|
||||
import { localize, localize2 } from 'vs/nls';
|
||||
import { ContextKeyExpr, IContextKey, IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { IChatAgentService } from 'vs/workbench/contrib/chat/common/chatAgents';
|
||||
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
|
||||
import { InlineChatController, State } from 'vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
||||
import { CTX_INLINE_CHAT_HAS_AGENT, CTX_INLINE_CHAT_VISIBLE } from 'vs/workbench/contrib/inlineChat/common/inlineChat';
|
||||
import { EditorAction2, ServicesAccessor } from 'vs/editor/browser/editorExtensions';
|
||||
import { EditOperation } from 'vs/editor/common/core/editOperation';
|
||||
import { KeyCode } from 'vs/base/common/keyCodes';
|
||||
import { Range } from 'vs/editor/common/core/range';
|
||||
import { Position } from 'vs/editor/common/core/position';
|
||||
import { AbstractInlineChatAction } from 'vs/workbench/contrib/inlineChat/browser/inlineChatActions';
|
||||
@@ -118,11 +116,11 @@ export class InlineChatExpandLineAction extends EditorAction2 {
|
||||
title: localize2('startWithCurrentLine', "Start in Editor with Current Line"),
|
||||
f1: true,
|
||||
precondition: ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE.negate(), CTX_INLINE_CHAT_HAS_AGENT, EditorContextKeys.writable),
|
||||
keybinding: {
|
||||
when: CTX_INLINE_CHAT_EXPANSION,
|
||||
weight: KeybindingWeight.EditorContrib,
|
||||
primary: KeyCode.Tab
|
||||
}
|
||||
// keybinding: {
|
||||
// when: CTX_INLINE_CHAT_EXPANSION,
|
||||
// weight: KeybindingWeight.EditorContrib,
|
||||
// primary: KeyCode.Tab
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user