julia-language-server.schema.json 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "title": "Julia Language Server Configuration",
  3. "description": "Extracted from https://github.com/julia-vscode/julia-vscode/blob/master/package.json; markdownDescription → description; removed Code-specific options, retained the overlap with https://github.com/julia-vscode/LanguageServer.jl/blob/36d8da744c1cb517cca3ba19180ddd276c1c6bf5/src/requests/workspace.jl#L88-L103; distributed under MIT License Copyright (c) 2012-2019 David Anthoff, Zac Nugent and other contributors (https://github.com/JuliaLang/Julia.tmbundle/contributors, https://github.com/julia-vscode/julia-vscode/contributors)",
  4. "type": "object",
  5. "properties": {
  6. "julia.lint.run": {
  7. "type": "boolean",
  8. "default": true,
  9. "description": "Run the linter on active files."
  10. },
  11. "julia.lint.missingrefs": {
  12. "type": "string",
  13. "default": "none",
  14. "enum": ["none", "symbols", "all"],
  15. "description": "Highlight unknown symbols. The `symbols` option will not mark unknown fields."
  16. },
  17. "julia.lint.disabledDirs": {
  18. "type": "array",
  19. "items": {
  20. "type": "string"
  21. },
  22. "default": ["docs", "test"],
  23. "description": "Specifies sub-directories in [a package directory](https://docs.julialang.org/en/v1/manual/code-loading/#Package-directories-1) where only basic linting is. This drastically lowers the chance for false positives."
  24. },
  25. "julia.lint.call": {
  26. "type": "boolean",
  27. "default": true,
  28. "description": "This compares call signatures against all known methods for the called function. Calls with too many or too few arguments, or unknown keyword parameters are highlighted."
  29. },
  30. "julia.lint.iter": {
  31. "type": "boolean",
  32. "default": true,
  33. "description": "Check iterator syntax of loops. Will identify, for example, attempts to iterate over single values."
  34. },
  35. "julia.lint.nothingcomp": {
  36. "type": "boolean",
  37. "default": true,
  38. "description": "Check for use of `==` rather than `===` when comparing against `nothing`. "
  39. },
  40. "julia.lint.constif": {
  41. "type": "boolean",
  42. "default": true,
  43. "description": "Check for constant conditionals in if statements that result in branches never being reached.."
  44. },
  45. "julia.lint.lazy": {
  46. "type": "boolean",
  47. "default": true,
  48. "description": "Check for deterministic lazy boolean operators."
  49. },
  50. "julia.lint.datadecl": {
  51. "type": "boolean",
  52. "default": true,
  53. "description": "Check variables used in type declarations are datatypes."
  54. },
  55. "julia.lint.typeparam": {
  56. "type": "boolean",
  57. "default": true,
  58. "description": "Check parameters declared in `where` statements or datatype declarations are used."
  59. },
  60. "julia.lint.modname": {
  61. "type": "boolean",
  62. "default": true,
  63. "description": "Check submodule names do not shadow their parent's name."
  64. },
  65. "julia.lint.pirates": {
  66. "type": "boolean",
  67. "default": true,
  68. "description": "Check for type piracy - the overloading of external functions with methods specified for external datatypes. 'External' here refers to imported code."
  69. },
  70. "julia.lint.useoffuncargs": {
  71. "type": "boolean",
  72. "default": true,
  73. "description": "Check that all declared arguments are used within the function body."
  74. },
  75. "julia.completionmode": {
  76. "type": "string",
  77. "default": "qualify",
  78. "description": "Sets the mode for completions.",
  79. "enum": ["exportedonly", "import", "qualify"],
  80. "enumDescriptions": [
  81. "Show completions for the current namespace.",
  82. "Show completions for the current namespace and unexported variables of `using`ed modules. Selection of an unexported variable will result in the automatic insertion of an explicit `using` statement.",
  83. "Show completions for the current namespace and unexported variables of `using`ed modules. Selection of an unexported variable will complete to a qualified variable name."
  84. ],
  85. "scope": "window"
  86. }
  87. }
  88. }