-
Couldn't load subscription status.
- Fork 26
Description
There is an earlier issue #121 that mentions this. However, that issue was closed although the problem is still occurring.
If I press Ctrl+Space I expect the autocomplete to show up, so long as I am using the completion keymap. (The default EditorView with basicSetup includes the completion keymap.) However, Ctrl+Space does nothing unless I have typed at least one letter.
This is most noticeable in YAML. You can see it at https://codemirror-json-schema.netlify.app/.
Here's what I expect:
- Have the cursor in an object with a schema defined.
- Press
Ctrl+Space. - See the autocomplete suggestions.
Here's what I see instead:
- Have the cursor in an object with a schema defined.
- Press
Ctrl+Space. - Nothing happens.
- Type one letter.
- Autocomplete shows.
- Press escape.
- Autocomplete goes away.
- Press
Ctrl+Space. - Autocomplete shows.
So it works so long as there is a letter already there, but not when there isn't.
This is less noticeable in JSON, because I normally create a JSON key by typing a quote ", which starts the autocomplete.