fix(editor): Remove keybind of intellisense (#42137)
* fix: Remove keybind of intellisense * fix: remove old solution * fix: disable suggestion on trigger characterspull/42170/head
parent
d14f53f463
commit
955588eb3e
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue