fix(editor): Remove keybind of intellisense (#42137)
* fix: Remove keybind of intellisense * fix: remove old solution * fix: disable suggestion on trigger characters
This commit is contained in:
@ -189,7 +189,8 @@ class Editor extends Component {
|
|||||||
lightbulb: {
|
lightbulb: {
|
||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
quickSuggestions: false
|
quickSuggestions: false,
|
||||||
|
suggestOnTriggerCharacters: false
|
||||||
};
|
};
|
||||||
|
|
||||||
this._editor = null;
|
this._editor = null;
|
||||||
@ -253,6 +254,12 @@ class Editor extends Component {
|
|||||||
// TODO: only one Editor should be calling for focus at once.
|
// TODO: only one Editor should be calling for focus at once.
|
||||||
editor.focus();
|
editor.focus();
|
||||||
} else this.focusOnHotkeys();
|
} else this.focusOnHotkeys();
|
||||||
|
// Removes keybind for intellisense
|
||||||
|
editor._standaloneKeybindingService.addDynamicKeybinding(
|
||||||
|
'-editor.action.triggerSuggest',
|
||||||
|
null,
|
||||||
|
() => {}
|
||||||
|
);
|
||||||
editor.addAction({
|
editor.addAction({
|
||||||
id: 'execute-challenge',
|
id: 'execute-challenge',
|
||||||
label: 'Run tests',
|
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));
|
editor.onDidFocusEditorWidget(() => this.props.setEditorFocusability(true));
|
||||||
// This is to persist changes caused by the accessibility tooltip.
|
// This is to persist changes caused by the accessibility tooltip.
|
||||||
editor.onDidChangeConfiguration(event => {
|
editor.onDidChangeConfiguration(event => {
|
||||||
|
Reference in New Issue
Block a user