Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add delete as default keybinding for removing file from working set #237513

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meganrogge
Copy link
Contributor

fix #10338

I wondered about adding this to the when condition also, but that seemed to break things?

ContextKeyExpr.equals(chatEditingWidgetFileStateContextKey.key, WorkingSetEntryState.Modified)

@meganrogge meganrogge self-assigned this Jan 8, 2025
@meganrogge meganrogge marked this pull request as draft January 8, 2025 18:27
@meganrogge meganrogge added this to the January 2025 milestone Jan 8, 2025
@@ -98,6 +98,11 @@ registerAction2(class RemoveFileFromWorkingSet extends WorkingSetAction {
order: 5,
group: 'navigation'
}],
keybinding: {
primary: KeyCode.Delete,
when: ContextKeyExpr.and(ChatContextKeys.location.isEqualTo(ChatAgentLocation.EditingSession), ChatContextKeys.inChatInput.negate()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we need some kind of context key that expresses "working set focused" because otherwise the keybinding is active for the conversation etc pp. So, instead of spelling out the "not here places, like inChatInput.negate" we need to know that the working set list is active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[json] Colorisation of JSON in VSC breaks part way down the file
2 participants