dockerfile-language-server-nodejs.schema.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. {
  2. "title": "Docker language server confiuguration",
  3. "type": "object",
  4. "$comment": "Based on settings of vscode-docker which is distributed under MIT License, Copyright (c) Microsoft Corporation",
  5. "properties": {
  6. "docker.defaultRegistryPath": {
  7. "type": "string",
  8. "default": "",
  9. "description": "Default registry and path when tagging an image"
  10. },
  11. "docker.explorerRefreshInterval": {
  12. "type": "number",
  13. "default": 2000,
  14. "description": "Explorer refresh interval, default is 2000ms"
  15. },
  16. "docker.containers.groupBy": {
  17. "type": "string",
  18. "default": "None",
  19. "description": "The property to use when grouping containers.",
  20. "enum": [
  21. "ContainerId",
  22. "ContainerName",
  23. "CreatedTime",
  24. "FullTag",
  25. "ImageId",
  26. "Networks",
  27. "None",
  28. "Ports",
  29. "Registry",
  30. "Repository",
  31. "RepositoryName",
  32. "RepositoryNameAndTag",
  33. "State",
  34. "Status",
  35. "Tag"
  36. ]
  37. },
  38. "docker.containers.description": {
  39. "type": "array",
  40. "default": ["ContainerName", "Status"],
  41. "description": "Any secondary properties to display for a container.",
  42. "items": {
  43. "type": "string",
  44. "enum": [
  45. "ContainerId",
  46. "ContainerName",
  47. "CreatedTime",
  48. "FullTag",
  49. "ImageId",
  50. "Networks",
  51. "Ports",
  52. "Registry",
  53. "Repository",
  54. "RepositoryName",
  55. "RepositoryNameAndTag",
  56. "State",
  57. "Status",
  58. "Tag"
  59. ]
  60. }
  61. },
  62. "docker.containers.label": {
  63. "type": "string",
  64. "default": "FullTag",
  65. "description": "The primary property to display for a container.",
  66. "enum": [
  67. "ContainerId",
  68. "ContainerName",
  69. "CreatedTime",
  70. "FullTag",
  71. "ImageId",
  72. "Networks",
  73. "Ports",
  74. "Registry",
  75. "Repository",
  76. "RepositoryName",
  77. "RepositoryNameAndTag",
  78. "State",
  79. "Status",
  80. "Tag"
  81. ]
  82. },
  83. "docker.containers.sortBy": {
  84. "type": "string",
  85. "default": "CreatedTime",
  86. "description": "The property to use when sorting containers.",
  87. "enum": ["CreatedTime", "Label"]
  88. },
  89. "docker.images.groupBy": {
  90. "type": "string",
  91. "default": "Repository",
  92. "description": "The property to use when grouping images.",
  93. "enum": [
  94. "CreatedTime",
  95. "FullTag",
  96. "ImageId",
  97. "None",
  98. "Registry",
  99. "Repository",
  100. "RepositoryName",
  101. "RepositoryNameAndTag",
  102. "Tag"
  103. ]
  104. },
  105. "docker.images.description": {
  106. "type": "array",
  107. "default": ["CreatedTime"],
  108. "description": "Any secondary properties to display for a image.",
  109. "items": {
  110. "type": "string",
  111. "enum": [
  112. "CreatedTime",
  113. "FullTag",
  114. "ImageId",
  115. "Registry",
  116. "Repository",
  117. "RepositoryName",
  118. "RepositoryNameAndTag",
  119. "Tag"
  120. ]
  121. }
  122. },
  123. "docker.images.label": {
  124. "type": "string",
  125. "default": "Tag",
  126. "description": "The primary property to display for a image.",
  127. "enum": [
  128. "CreatedTime",
  129. "FullTag",
  130. "ImageId",
  131. "Registry",
  132. "Repository",
  133. "RepositoryName",
  134. "RepositoryNameAndTag",
  135. "Tag"
  136. ]
  137. },
  138. "docker.images.sortBy": {
  139. "type": "string",
  140. "default": "CreatedTime",
  141. "description": "The property to use when sorting images.",
  142. "enum": ["CreatedTime", "Label"]
  143. },
  144. "docker.networks.groupBy": {
  145. "type": "string",
  146. "default": "None",
  147. "description": "The property to use when grouping networks.",
  148. "enum": [
  149. "CreatedTime",
  150. "NetworkDriver",
  151. "NetworkId",
  152. "NetworkName",
  153. "None"
  154. ]
  155. },
  156. "docker.networks.description": {
  157. "type": "array",
  158. "default": ["NetworkDriver", "CreatedTime"],
  159. "description": "Any secondary properties to display for a network.",
  160. "items": {
  161. "type": "string",
  162. "enum": ["CreatedTime", "NetworkDriver", "NetworkId", "NetworkName"]
  163. }
  164. },
  165. "docker.networks.label": {
  166. "type": "string",
  167. "default": "NetworkName",
  168. "description": "The primary property to display for a network.",
  169. "enum": ["CreatedTime", "NetworkDriver", "NetworkId", "NetworkName"]
  170. },
  171. "docker.networks.sortBy": {
  172. "type": "string",
  173. "default": "CreatedTime",
  174. "description": "The property to use when sorting networks.",
  175. "enum": ["CreatedTime", "Label"]
  176. },
  177. "docker.volumes.groupBy": {
  178. "type": "string",
  179. "default": "None",
  180. "description": "The property to use when grouping volumes.",
  181. "enum": ["CreatedTime", "VolumeName", "None"]
  182. },
  183. "docker.volumes.description": {
  184. "type": "array",
  185. "default": ["CreatedTime"],
  186. "description": "Any secondary properties to display for a volume.",
  187. "items": {
  188. "type": "string",
  189. "enum": ["CreatedTime", "VolumeName"]
  190. }
  191. },
  192. "docker.volumes.label": {
  193. "type": "string",
  194. "default": "VolumeName",
  195. "description": "The primary property to display for a volume.",
  196. "enum": ["CreatedTime", "VolumeName"]
  197. },
  198. "docker.volumes.sortBy": {
  199. "type": "string",
  200. "default": "CreatedTime",
  201. "description": "The property to use when sorting volumes.",
  202. "enum": ["CreatedTime", "Label"]
  203. },
  204. "docker.imageBuildContextPath": {
  205. "type": "string",
  206. "default": "",
  207. "description": "Build context PATH to pass to Docker build command"
  208. },
  209. "docker.truncateLongRegistryPaths": {
  210. "type": "boolean",
  211. "default": false,
  212. "description": "Truncate long Image and Container registry paths in the Explorer"
  213. },
  214. "docker.truncateMaxLength": {
  215. "type": "number",
  216. "default": 10,
  217. "description": "Maximum number of characters for long registry paths in the Explorer, including elipsis"
  218. },
  219. "docker.host": {
  220. "type": "string",
  221. "default": "",
  222. "description": "Equivalent to setting the DOCKER_HOST environment variable."
  223. },
  224. "docker.certPath": {
  225. "type": "string",
  226. "default": "",
  227. "description": "Equivalent to setting the DOCKER_CERT_PATH environment variable."
  228. },
  229. "docker.tlsVerify": {
  230. "type": "string",
  231. "default": "",
  232. "description": "Equivalent to setting the DOCKER_TLS_VERIFY environment variable."
  233. },
  234. "docker.machineName": {
  235. "type": "string",
  236. "default": "",
  237. "description": "Equivalent to setting the DOCKER_MACHINE_NAME environment variable."
  238. },
  239. "docker.languageserver.diagnostics.deprecatedMaintainer": {
  240. "scope": "resource",
  241. "type": "string",
  242. "default": "warning",
  243. "enum": ["ignore", "warning", "error"],
  244. "description": "Controls the diagnostic severity for the deprecated MAINTAINER instruction"
  245. },
  246. "docker.languageserver.diagnostics.emptyContinuationLine": {
  247. "scope": "resource",
  248. "type": "string",
  249. "default": "warning",
  250. "enum": ["ignore", "warning", "error"],
  251. "description": "Controls the diagnostic severity for flagging empty continuation lines found in instructions that span multiple lines"
  252. },
  253. "docker.languageserver.diagnostics.directiveCasing": {
  254. "scope": "resource",
  255. "type": "string",
  256. "default": "warning",
  257. "enum": ["ignore", "warning", "error"],
  258. "description": "Controls the diagnostic severity for parser directives that are not written in lowercase"
  259. },
  260. "docker.languageserver.diagnostics.instructionCasing": {
  261. "scope": "resource",
  262. "type": "string",
  263. "default": "warning",
  264. "enum": ["ignore", "warning", "error"],
  265. "description": "Controls the diagnostic severity for instructions that are not written in uppercase"
  266. },
  267. "docker.languageserver.diagnostics.instructionCmdMultiple": {
  268. "scope": "resource",
  269. "type": "string",
  270. "default": "warning",
  271. "enum": ["ignore", "warning", "error"],
  272. "description": "Controls the diagnostic severity for flagging a Dockerfile with multiple CMD instructions"
  273. },
  274. "docker.languageserver.diagnostics.instructionEntrypointMultiple": {
  275. "scope": "resource",
  276. "type": "string",
  277. "default": "warning",
  278. "enum": ["ignore", "warning", "error"],
  279. "description": "Controls the diagnostic severity for flagging a Dockerfile with multiple ENTRYPOINT instructions"
  280. },
  281. "docker.languageserver.diagnostics.instructionHealthcheckMultiple": {
  282. "scope": "resource",
  283. "type": "string",
  284. "default": "warning",
  285. "enum": ["ignore", "warning", "error"],
  286. "description": "Controls the diagnostic severity for flagging a Dockerfile with multiple HEALTHCHECK instructions"
  287. },
  288. "docker.languageserver.diagnostics.instructionJSONInSingleQuotes": {
  289. "scope": "resource",
  290. "type": "string",
  291. "default": "warning",
  292. "enum": ["ignore", "warning", "error"],
  293. "description": "Controls the diagnostic severity for JSON instructions that are written incorrectly with single quotes"
  294. },
  295. "docker.languageserver.diagnostics.instructionWorkdirRelative": {
  296. "scope": "resource",
  297. "type": "string",
  298. "default": "warning",
  299. "enum": ["ignore", "warning", "error"],
  300. "description": "Controls the diagnostic severity for WORKDIR instructions that do not point to an absolute path"
  301. },
  302. "docker.attachShellCommand.linuxContainer": {
  303. "type": "string",
  304. "default": "/bin/sh -c \"[ -e /bin/bash ] && /bin/bash || /bin/sh\"",
  305. "description": "Attach command to use for Linux containers"
  306. },
  307. "docker.attachShellCommand.windowsContainer": {
  308. "type": "string",
  309. "default": "powershell",
  310. "description": "Attach command to use for Windows containers"
  311. },
  312. "docker.dockerComposeBuild": {
  313. "type": "boolean",
  314. "default": true,
  315. "description": "Run docker-compose with the --build argument, defaults to true"
  316. },
  317. "docker.dockerComposeDetached": {
  318. "type": "boolean",
  319. "default": true,
  320. "description": "Run docker-compose with the --d (detached) argument, defaults to true"
  321. },
  322. "docker.showRemoteWorkspaceWarning": {
  323. "type": "boolean",
  324. "default": true,
  325. "description": "Show a prompt to switch from \"UI\" extension to \"Workspace\" extension if an operation is not supported."
  326. },
  327. "docker.dockerPath": {
  328. "type": "string",
  329. "default": "docker",
  330. "description": "Absolute path to Docker client executable ('docker' command). If the path contains whitespace, it needs to be quoted appropriately."
  331. },
  332. "docker.enableDockerComposeLanguageService": {
  333. "type": "boolean",
  334. "default": true,
  335. "description": "Whether or not to enable the preview Docker Compose Language Service. Changing requires restart to take effect"
  336. }
  337. }
  338. }