✅ [VsCode] Control Over Suggestion Priority in YAML Files
I am using Visual Studio Code for editing YAML files with a JSON Schema. The schema provides useful suggestions, but these are often buried under the default suggestions like !AND, !BASE64, etc.
I was wondering if there's a way to prioritize the JSON Schema suggestions over the default ones in YAML files.
49 Replies
IntelliSense in Visual Studio Code
Learn about Visual Studio Code IntelliSense (intelligent code completion).
Does do nothing, have tried top,bottom...
nothing....
added to .vscode/settings.json
@Azrael
You don't have to ping me.
Do it per project then.
thats what i did
Do it universally.
.vscode/settings.json
Added it to the user settings.
%APPDATA%\Code\User\settings.json
no changeLet me see the file.
Put it at the absolute bottom.
no change :/
Did you restart VSC?
100x
Most likely an extension conflict then.
Which extensions do you have?
Try disabling extensions with
--disable-extensions
.causes no suggestions being shown at all
I know, you disabled IntelliSense.
i re enabled only redhat yaml
Or wait no.
and the issue persists
Try using a different schema.
whats wrong with this one
Nothing.
I just wanted to see if it worked with another one.
Have you tried
editor.quickSuggestions
?
thats snippetSuggestions
Yes.
Try setting both.
can you try it?
What?
if you get it to work with any schema
It works with snippetSuggestions.
For me that is.
with which schema did u try it?
Default.
default schema?
Yes.
it doesnt have enums or anything
Let me check.
Atlassian for YAML.
im going to install vscode on a sandbox...
Default JSON.
ok it works
WTF
where does it come from
Probably a bad schema.
It comes from IntelliSense.
no
I have the same schema
copied over
If it works using the default one then is must be an extension error.
to a fresh vscode insall
WHAT THE ACTUAL
where does it come from
nvm
i dont even wanna ask
thank you for bearing with me @Azrael
Lol.
No problem.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.