Skip to content

Ctrl+Space not working with YAML #148

@chowey

Description

@chowey

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:

  1. Have the cursor in an object with a schema defined.
  2. Press Ctrl+Space.
  3. See the autocomplete suggestions.

Here's what I see instead:

  1. Have the cursor in an object with a schema defined.
  2. Press Ctrl+Space.
  3. Nothing happens.
  4. Type one letter.
  5. Autocomplete shows.
  6. Press escape.
  7. Autocomplete goes away.
  8. Press Ctrl+Space.
  9. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions