redhat-developer / redhat-developer/vscode-yaml

Suggestions do not work

Open
#1,042 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

Hi! I have installed a an extension for vscode v1.15.0.

Wrote this json file for validation and suggestions:

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Example",
    "description": "An example of how to use snippets for json schema",
    "type": "object",
    "properties": {
        "object-mapper": {
            "type": "object",
            "properties": {
                "test1": {"type": "string"},
                "test2": {"type": "string"}
            }
        }
     }
}

This is my file:

# yaml-language-server: $schema=/Users/avkazantseva9/test_plugin/suggest.json

object-mapper:
  

Expected Behavior

When i type object-mapper i get suggestions about tests1 and test2.
On this photo there are no suggestions:
2024-07-16 17 48 17

Current Behavior

I get any suggestions, only if i type "te", then i will get suggestions about them.
2024-07-16 17 48 12

Steps to Reproduce

  1. Simply download the extension
  2. Create folder
  3. Create both this files

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

Reproduce the issue in the VS Code YAML extension using the provided JSON schema and YAML file, then inspect the suggestion behavior after typing object-mapper. Verify whether suggestions appear immediately as expected and use the existing extension tests or language-server entry points to locate the relevant completion handling; done means test1 and test2 are suggested without typing an additional prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.