-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@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 |
No description provided.