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

Support Accept/Reject/Next/Prev chat edit actions in notebooks #233875

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DonJayamanne
Copy link
Contributor

No description provided.

@@ -36,7 +38,7 @@ abstract class NavigateAction extends Action2 {
? KeyMod.Alt | KeyCode.F5
: KeyMod.Alt | KeyMod.Shift | KeyCode.F5,
weight: KeybindingWeight.EditorContrib,
when: ContextKeyExpr.and(ctxHasEditorModification, EditorContextKeys.focus),
when: ContextKeyExpr.and(ContextKeyExpr.or(ctxHasEditorModification, ctxNotebookHasEditorModification), EditorContextKeys.focus),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ctxHasEditorModifcations only applies to regular editors & not notebooks, hence the new context var

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alternatively I can create new menu items and ensure these are disabled for notebooks.

@DonJayamanne
Copy link
Contributor Author

@jrieken Making minimal changes in chat edits, i.e. trying to limit changes before we start baking in full (native) support for notebooks in chat edits. However I believe these changes are still valid
Merging into a separate branch for now so you can just see the changes specific to chat edits area.

@DonJayamanne DonJayamanne marked this pull request as ready for review November 15, 2024 00:47
@DonJayamanne DonJayamanne self-assigned this Nov 15, 2024
Base automatically changed from don/notebookChatEdits10 to main November 15, 2024 04:08
@DonJayamanne DonJayamanne enabled auto-merge (squash) November 15, 2024 12:16
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.

3 participants