vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Inserting a ":" should end the current autocompletion

Open WoodyWoodsta opened this issue 2 years ago • 0 comments

Describe the bug

Entering a colon declares the end of entering a property name. This means that autocompletion is no longer required. Similarly, typing a ":" in JSON or "." in javascript ends the autocompletion for that token and either starts the next, or stops altogether.

This extension appears to keep the autocompletion/intellisense context up after typing a colon, meaning that you have to escape before adding a new line.

https://github.com/redhat-developer/vscode-yaml/assets/8268040/234de072-448e-4efc-be63-a772bc42a3a8

Expected Behavior

Typing ":" closes the autocomplete context.

Current Behavior

Typing ":" keeps the autocomplete context open, either with a redundant suggestion matching what you have already typed, or a now-irrelevant list of suggestions.

Steps to Reproduce

Add new properties to a YAML file.

Environment

  • [ ] Windows
  • [x] Mac
  • [ ] Linux
  • [ ] other (please specify)

WoodyWoodsta avatar Aug 21 '23 15:08 WoodyWoodsta