Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code completion doesn't trigger automatically for YAML because most entries are considered "string" #239679

Open
DanTup opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@DanTup
Copy link
Contributor

DanTup commented Feb 5, 2025

#232363 was closed as a duplicate of #231224 but it is not. I cannot comment there because the bot has locked it.

#231224 is about configurationDefaults not applying correctly.
The request in #232363 is that YAML code completion works out of the box without users having to change their settings, or extensions having to forcefully change a users YAML settings for all YAML files.

The issue is that the grammar treats most entries as "string" and quickSuggestions are disabled for strings by default.

The proposal by @RedCMD is to enable quickSuggestions for strings in YAML by default like JSON does:

   "[json]": { 
     "editor.quickSuggestions": { 
       "strings": true 
     }, 

I think this is a reasonable fix so that YAML code completion works as users would expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants