redhat-developer / redhat-developer/vscode-yaml
Suggestions do not work
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:
Current Behavior
I get any suggestions, only if i type "te", then i will get suggestions about them.
Steps to Reproduce
- Simply download the extension
- Create folder
- Create both this files
Environment
- Windows
- [ +] Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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