redhat-developer / redhat-developer/vscode-yaml

Inserting a ":" should end the current autocompletion

Open
#967 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

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
  • Mac
  • Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the VS Code YAML extension with a YAML file and inspect the completion behavior after entering a colon. Compare the YAML behavior with the described JSON and JavaScript cases; done means typing a colon closes the current autocomplete context without requiring an escape.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.