Sebastian Pahnke

Results 13 comments of Sebastian Pahnke

Ah, that looks right, but it is broken for the context menu. I will edit the issue text. ![grafik](https://user-images.githubusercontent.com/25029871/48785475-0d52db80-ece5-11e8-9e1a-1923a0b0113f.png)

You are right, the flag didn't affect the context menu at all. I don't where I was looking... Is there anything else I could do about that? I'm so sorry...

I had the same problem after the update, but also got an error because I passed `undefined` as the second parameter. And after debugging a bit passing the existing keybinding...

You can use the existing `suggestWidgetVisible` context key for that. ```js editor.addCommand(monaco.KeyCode.Space, () => editor.trigger('', 'hideSuggestWidget', null), 'suggestWidgetVisible'); ```

A simpler workaround than the ones I've seen above might be to use actions instead of commands: [Playground link](https://microsoft.github.io/monaco-editor/playground.html?source=v0.40.0#XQAAAAKJAgAAAAAAAABBqQkHQ5NjdQultUhUwcsQIjjaoVayL-wYsMehNIl_INnD7gUJWfYInkPB7B6Uva2UiFKMdg3Ww8_eclKA4rlSDXe2ewmyO4L13dbNXI4sgJnzGpwmuSPdOzpnU62VbHjoVbvFfGONOg-PVBR7khamsAoX6o7-j8C6JmUPpv6LDWLLTqsReeZ3VbPTL6yW5smslCLairE0iEqPLn2-gRWrWKvUbEre9zyRk9NtH-m0FZmgvECO2LDpR0INd5o9zDpIwTPH_lLGxOaQrS32dEbFdcNUhuxPj-NZsmfMhRYZoWWpslWRwFzUR4hqc22WtKqEVAMXY7jU2hqEdp4VOwVJoOrzpTaudmQLYem98A0aqhkhXkPcznWBvXUqBjVt__IwW1s)

To get the peek definition working across files you add a model *and* register that file as an extra lib. I've never used path aliases but here is a working...

I think you have to include `allowJs` and `checkJs` in the compiler options for this to work properly, otherwise it seems to fall back to TypeScript mode even if your...

See https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-adding-an-action-to-an-editor-instance

For now I found a solution, let me know if this is the proper way as well when using the ESM build in the future, and please also let me...