Skip to content

Commit

Permalink
Hide notebook chat actions from f1. (microsoft#209501)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix authored Apr 4, 2024
1 parent 98ce5b3 commit 641eb4c
Showing 1 changed file with 33 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ registerAction2(class extends NotebookAction {
group: 'navigation',
order: 1,
when: CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST.negate()
}
},
f1: false
});
}

Expand All @@ -64,7 +65,8 @@ registerAction2(class extends NotebookCellAction {
),
weight: KeybindingWeight.EditorCore + 7,
primary: KeyMod.CtrlCmd | KeyCode.UpArrow
}
},
f1: false
});
}

Expand Down Expand Up @@ -105,7 +107,8 @@ registerAction2(class extends NotebookAction {
),
weight: KeybindingWeight.EditorCore + 7,
primary: KeyMod.CtrlCmd | KeyCode.DownArrow
}
},
f1: false
});
}

Expand Down Expand Up @@ -134,7 +137,8 @@ registerAction2(class extends NotebookCellAction {
),
weight: KeybindingWeight.EditorCore + 7,
primary: KeyMod.CtrlCmd | KeyCode.UpArrow
}
},
f1: false
});
}

Expand Down Expand Up @@ -164,7 +168,8 @@ registerAction2(class extends NotebookCellAction {
),
weight: KeybindingWeight.EditorCore + 7,
primary: KeyMod.CtrlCmd | KeyCode.DownArrow
}
},
f1: false
});
}

Expand All @@ -186,7 +191,8 @@ registerAction2(class extends NotebookAction {
group: 'navigation',
order: 1,
when: CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST
}
},
f1: false
});
}

Expand All @@ -206,7 +212,8 @@ registerAction2(class extends NotebookAction {
id: MENU_CELL_CHAT_WIDGET,
group: 'navigation',
order: 2
}
},
f1: false
});
}

Expand Down Expand Up @@ -253,7 +260,8 @@ registerAction2(class extends NotebookAction {
order: 0,
when: CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.OnlyMessages),
}
]
],
f1: false
});
}

Expand All @@ -278,7 +286,8 @@ registerAction2(class extends NotebookAction {
id: MENU_CELL_CHAT_WIDGET_STATUS,
group: 'main',
order: 1
}
},
f1: false
});
}

Expand All @@ -298,7 +307,8 @@ registerAction2(class extends NotebookAction {
group: 'inline',
order: 1,
when: CTX_INLINE_CHAT_LAST_RESPONSE_TYPE.notEqualsTo(undefined),
}
},
f1: false
});
}

Expand All @@ -318,7 +328,8 @@ registerAction2(class extends NotebookAction {
group: 'inline',
order: 2,
when: CTX_INLINE_CHAT_LAST_RESPONSE_TYPE.notEqualsTo(undefined),
}
},
f1: false
});
}

Expand All @@ -338,7 +349,8 @@ registerAction2(class extends NotebookAction {
group: 'inline',
order: 3,
when: CTX_INLINE_CHAT_LAST_RESPONSE_TYPE.notEqualsTo(undefined),
}
},
f1: false
});
}

Expand Down Expand Up @@ -535,6 +547,7 @@ registerAction2(class extends NotebookAction {
weight: KeybindingWeight.WorkbenchContrib
}
],
f1: false
});
}

Expand All @@ -558,6 +571,7 @@ registerAction2(class extends NotebookAction {
weight: KeybindingWeight.WorkbenchContrib
}
],
f1: false
});
}

Expand All @@ -581,6 +595,7 @@ registerAction2(class extends NotebookAction {
weight: KeybindingWeight.WorkbenchContrib
}
],
f1: false
});
}

Expand All @@ -600,7 +615,8 @@ registerAction2(class extends NotebookAction {
when: ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED),
weight: KeybindingWeight.EditorCore + 10,
primary: KeyCode.UpArrow,
}
},
f1: false
});
}

Expand All @@ -620,7 +636,8 @@ registerAction2(class extends NotebookAction {
when: ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED),
weight: KeybindingWeight.EditorCore + 10,
primary: KeyCode.DownArrow
}
},
f1: false
});
}

Expand All @@ -646,7 +663,8 @@ registerAction2(class extends NotebookCellAction {
NOTEBOOK_CELL_GENERATED_BY_CHAT,
ContextKeyExpr.equals(`config.${NotebookSetting.cellChat}`, true)
)
}
},
f1: false
});
}

Expand Down

0 comments on commit 641eb4c

Please sign in to comment.