You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a configuration contribution to an extension's package.json that accepts both boolean and string types, but give it an enum that doesn't include one of the boolean options:
"ruby.codeCompletion": {
"type": ["boolean", "string"],
"enum": [false, "rcodetools"],
"default": false,
"description": "Method to use for code completion. Use `false` if another extension provides this feature."
}
When editing the configuration in User Settings, the completion items include true despite the enum:
The text was updated successfully, but these errors were encountered:
aeschli
changed the title
Completion items for settings.json always include true and false for boolean type regardless of enum
[json] proposals include true and false for boolean type regardless of enum
Mar 15, 2018
This issue was discovered in rubyide/vscode-ruby#295.
Add a configuration contribution to an extension's package.json that accepts both
boolean
andstring
types, but give it an enum that doesn't include one of the boolean options:When editing the configuration in User Settings, the completion items include
true
despite the enum:The text was updated successfully, but these errors were encountered: