redhat-developer / redhat-developer/yaml-language-server

Problem with trigger characters and autocompletion

Open
#129 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

After we have set the trigger characters up there seems to be a few issues with the trigger characters and autocompletion. Sometimes you'll find the trigger characters activate autocompletion one space too early which causes invalid autocompletion elements. It might have to do with something in https://github.com/redhat-developer/yaml-language-server/blob/master/src/server.ts#L503

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 reading src/server.ts around line 503 and reproduce the behavior with configured trigger characters and autocompletion. Check when completion is activated relative to the preceding space and identify cases that produce invalid elements. Done means trigger characters activate at the intended position without premature or invalid completions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.