fix(editor): Remove keybind of intellisense (#42137)

* fix: Remove keybind of intellisense

* fix: remove old solution

* fix: disable suggestion on trigger characters
pull/42170/head
Niraj Nandish 2021-05-18 00:42:22 +04:00 committed by GitHub
parent d14f53f463
commit 955588eb3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -189,7 +189,8 @@ class Editor extends Component {
lightbulb: {
enabled: false
},
quickSuggestions: false
quickSuggestions: false,
suggestOnTriggerCharacters: false
};
this._editor = null;
@ -253,6 +254,12 @@ class Editor extends Component {
// TODO: only one Editor should be calling for focus at once.
editor.focus();
} else this.focusOnHotkeys();
// Removes keybind for intellisense
editor._standaloneKeybindingService.addDynamicKeybinding(
'-editor.action.triggerSuggest',
null,
() => {}
);
editor.addAction({
id: 'execute-challenge',
label: 'Run tests',
@ -293,11 +300,6 @@ class Editor extends Component {
});
}
});
// Overrides Intellisense suggestion box
editor.addCommand(
monaco.KeyMod.CtrlCmd | monaco.KeyCode.Space,
function () {}
);
editor.onDidFocusEditorWidget(() => this.props.setEditorFocusability(true));
// This is to persist changes caused by the accessibility tooltip.
editor.onDidChangeConfiguration(event => {