提交 f289ac91 编写于 作者: J Joao Moreno

🐛 fixes #24673

上级 b1d403f8
...@@ -361,12 +361,7 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({ ...@@ -361,12 +361,7 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
CommonEditorRegistry.registerEditorCommand(new SuggestCommand({ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
id: 'selectLastSuggestion', id: 'selectLastSuggestion',
precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions), precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions),
handler: c => c.selectLastSuggestion(), handler: c => c.selectLastSuggestion()
kbOpts: {
weight: weight,
kbExpr: EditorContextKeys.textFocus,
primary: KeyCode.End
}
})); }));
CommonEditorRegistry.registerEditorCommand(new SuggestCommand({ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
...@@ -397,12 +392,7 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({ ...@@ -397,12 +392,7 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
CommonEditorRegistry.registerEditorCommand(new SuggestCommand({ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
id: 'selectFirstSuggestion', id: 'selectFirstSuggestion',
precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions), precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions),
handler: c => c.selectFirstSuggestion(), handler: c => c.selectFirstSuggestion()
kbOpts: {
weight: weight,
kbExpr: EditorContextKeys.textFocus,
primary: KeyCode.Home
}
})); }));
CommonEditorRegistry.registerEditorCommand(new SuggestCommand({ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册