Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/vs/editor/contrib/codeAction/browser/codeActionCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class AutoFixAction extends EditorAction {
}
}

const weight = KeybindingWeight.EditorContrib + 90;
const weight = KeybindingWeight.EditorContrib + 1000;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Not ideal. The issue is that in notebooks list.clear ends up eating escape otherwise. Not sure the best way to disable this


registerAction2(class extends Action2 {
constructor() {
Expand All @@ -503,7 +503,7 @@ registerAction2(class extends Action2 {
},
precondition: Context.Visible,
keybinding: {
weight: weight,
weight,
primary: KeyCode.Escape,
secondary: [KeyMod.Shift | KeyCode.Escape]
},
Expand All @@ -525,7 +525,7 @@ registerAction2(class extends Action2 {
},
precondition: Context.Visible,
keybinding: {
weight: weight + 100000,
weight,
primary: KeyCode.UpArrow,
secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow],
mac: { primary: KeyCode.UpArrow, secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow, KeyMod.WinCtrl | KeyCode.KeyP] },
Expand All @@ -548,7 +548,7 @@ registerAction2(class extends Action2 {
},
precondition: Context.Visible,
keybinding: {
weight: weight + 100000,
weight,
primary: KeyCode.DownArrow,
secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow],
mac: { primary: KeyCode.DownArrow, secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow, KeyMod.WinCtrl | KeyCode.KeyN] }
Expand All @@ -571,7 +571,7 @@ registerAction2(class extends Action2 {
},
precondition: Context.Visible,
keybinding: {
weight: weight + 100000,
weight,
primary: KeyCode.Enter,
secondary: [KeyMod.CtrlCmd | KeyCode.Period],
}
Expand All @@ -593,7 +593,7 @@ registerAction2(class extends Action2 {
},
precondition: Context.Visible,
keybinding: {
weight: weight + 100000,
weight,
primary: KeyMod.CtrlCmd | KeyCode.Enter,
}
});
Expand Down