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

settings.json intellisense suggests incorrect items #101822

Open
hyangah opened this issue Jul 6, 2020 · 4 comments
Open

settings.json intellisense suggests incorrect items #101822

hyangah opened this issue Jul 6, 2020 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug settings-editor VS Code settings editor issues
Milestone

Comments

@hyangah
Copy link

hyangah commented Jul 6, 2020

  • VSCode Version: 1.47.0-insider
    Commit: 376d9d9
    Date: 2020-07-03T10:26:01.724Z (3 days ago)

  • OS Version: Darwin x64 18.7.0

Steps to Reproduce:

  1. Install golang.go extension
  2. Open "Settings", and find "Go: Language Server Experimental Features". Click "Edit in settings.json"
  3. See incorrect items suggested

This is a new problem in 1.47.0-insiders. Not observed in 1.46.1

Does this issue occur when all extensions are disabled?: N/A

In 1.46.1

Screen Shot 2020-07-06 at 6 22 41 PM

Note that clicking "Edit in settings.json" inserts

"go.languageServerExperimentalFeatures": {
    
 },

In 1.47.0-insiders

Screen Shot 2020-07-06 at 6 23 52 PM

Note that clicking "Edit in settings.json" inserts

    "go.languageServerExperimentalFeatures": {
    
        "diagnostics": true,
        "documentLink": true
    },
@gjsjohnmurray
Copy link
Contributor

@sandy081 probably #99854 (comment)

@gjsjohnmurray
Copy link
Contributor

@sandy081 probably #99854 (comment)

New 1.47 behaviour of 'Edit in settings.json' reported by @hyangah is from #99854 and is correct I think. Completion no longer offers the two defined values because default entries got added. I guess it lists 'abc' type completions because Go extension maybe doesn't specify "additionalProperties": false

@sandy081
Copy link
Member

sandy081 commented Jul 7, 2020

Yeah it is because of #99854. As suggested in the issue it is better not to trigger the suggestion.

@sandy081 sandy081 assigned sandy081 and unassigned roblourens Jul 7, 2020
@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug settings-editor VS Code settings editor issues labels Jul 7, 2020
@sandy081 sandy081 added this to the July 2020 milestone Jul 7, 2020
@hyangah
Copy link
Author

hyangah commented Jul 8, 2020

I guess it lists 'abc' type completions because Go extension maybe doesn't specify "additionalProperties": false

I think I observed this issue first while testing golang/vscode-go#284 that adds additionalProperties. I didn't see any differences UX wise with and without the field, so I wondered what difference the PR would make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug settings-editor VS Code settings editor issues
Projects
None yet
Development

No branches or pull requests

5 participants