提交 81980b12 编写于 作者: J Johannes Rieken

fix suggestionSupportsAutoAccept and dedupe command, #4269

上级 ed602a4c
......@@ -226,9 +226,9 @@ CommonEditorRegistry.registerEditorCommand(ACCEPT_SELECTED_SUGGESTION_CMD, weigh
controller.acceptSelectedSuggestion();
});
KeybindingsRegistry.registerCommandDesc({
id: ACCEPT_SELECTED_SUGGESTION_CMD,
id: 'acceptSelectedSuggestionOnEnter',
handler(accessor, args) {
withCodeEditorFromCommandHandler(ACCEPT_SELECTED_SUGGESTION_CMD, accessor, args, (editor) => {
withCodeEditorFromCommandHandler('acceptSelectedSuggestionOnEnter', accessor, args, (editor) => {
const controller = SuggestController.getSuggestController(editor);
controller.acceptSelectedSuggestion();
});
......
......@@ -449,7 +449,7 @@ export class SuggestWidget implements IContentWidget, IDisposable {
const index = e.indexes[0];
this.suggestionSupportsAutoAccept.set(item.suggestion.noAutoAccept);
this.suggestionSupportsAutoAccept.set(!item.suggestion.noAutoAccept);
this.focusedItem = item;
this.list.setFocus(index);
this.updateWidgetHeight();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册