yaml-language-server.schema.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "title": "YAML language server configuration",
  3. "type": "object",
  4. "properties": {
  5. "yamlVersion": {
  6. "type": "string",
  7. "default": "1.2",
  8. "description": "Set default YAML spec version (1.2 or 1.1)"
  9. },
  10. "yaml.trace.server": {
  11. "type": "string",
  12. "enum": ["off", "messages", "verbose"],
  13. "default": "off",
  14. "description": "Traces the communication between the client and the YAML language service."
  15. },
  16. "yaml.schemas": {
  17. "type": "object",
  18. "default": {},
  19. "description": "Associate schemas to YAML files in the current workspace"
  20. },
  21. "yaml.format.enable": {
  22. "type": "boolean",
  23. "default": true,
  24. "description": "Enable/disable default YAML formatter (requires restart)"
  25. },
  26. "yaml.format.singleQuote": {
  27. "type": "boolean",
  28. "default": false,
  29. "description": "Use single quotes instead of double quotes"
  30. },
  31. "yaml.format.bracketSpacing": {
  32. "type": "boolean",
  33. "default": true,
  34. "description": "Print spaces between brackets in objects"
  35. },
  36. "yaml.format.proseWrap": {
  37. "type": "string",
  38. "default": "preserve",
  39. "enum": ["preserve", "never", "always"],
  40. "description": "Always: wrap prose if it exeeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is"
  41. },
  42. "yaml.format.printWidth": {
  43. "type": "integer",
  44. "default": 80,
  45. "description": "Specify the line length that the printer will wrap on"
  46. },
  47. "yaml.validate": {
  48. "type": "boolean",
  49. "default": true,
  50. "description": "Enable/disable validation feature"
  51. },
  52. "yaml.hover": {
  53. "type": "boolean",
  54. "default": true,
  55. "description": "Enable/disable hover feature"
  56. },
  57. "yaml.completion": {
  58. "type": "boolean",
  59. "default": true,
  60. "description": "Enable/disable completion feature"
  61. },
  62. "yaml.customTags": {
  63. "type": "array",
  64. "default": [],
  65. "items": {
  66. "type": "string"
  67. },
  68. "description": "Custom tags for the parser to use"
  69. },
  70. "yaml.schemaStore.enable": {
  71. "type": "boolean",
  72. "default": true,
  73. "description": "Automatically pull available YAML schemas from JSON Schema Store"
  74. },
  75. "yaml.schemaStore.url": {
  76. "type": "string",
  77. "default": "",
  78. "description": "URL of a schema store catalog to use when downloading schemas."
  79. },
  80. "yaml.maxItemsComputed": {
  81. "type": "integer",
  82. "default": 5000,
  83. "minimum": 0,
  84. "description": "The maximum number of outline symbols and folding regions computed (limited for performance reasons)."
  85. },
  86. "editor.tabSize": {
  87. "type": "integer",
  88. "default": 2,
  89. "minimum": 0,
  90. "description": "The number of spaces to use when autocompleting"
  91. },
  92. "http.proxy": {
  93. "type": "string",
  94. "default": "",
  95. "description": "The URL of the proxy server that will be used when attempting to download a schema. If it is not set or it is undefined no proxy server will be used."
  96. },
  97. "http.proxyStrictSSL": {
  98. "type": "boolean",
  99. "default": false,
  100. "description": "If true the proxy server certificate should be verified against the list of supplied CAs."
  101. },
  102. "yaml.disableDefaultProperties": {
  103. "type": "boolean",
  104. "default": false,
  105. "description": "Disable adding not required properties with default values into completion text"
  106. }
  107. }
  108. }