I am trying to override Monaco Editor suggestions with my own only when pressing Ctrl-Space. So I decided to begin with:
editor.addCommand(monaco.KeyMod.chord(monaco.KeyCode.Ctrl, monaco.KeyCode.Space), () => console.log("hello world"));
with an intention to replace console.log... with anything else in the future. But the editor doesn't react and gives me a full list of suggestions instead.
Can anybody give a hint how to override this default behaviour?