Skip to content

Commit

Permalink
chore(build): auto-generate vimdoc, schemas and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 9, 2024
1 parent 7644e39 commit bccd2b6
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
30 changes: 30 additions & 0 deletions schemas/intelephense.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,36 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "PHP code intelligence for Visual Studio Code",
"properties": {
"intelephense.codeLens.implementations.enable": {
"default": false,
"description": "Enable a code lens that shows an abstract and interface implementations count and command to peek locations.",
"scope": "window",
"type": "boolean"
},
"intelephense.codeLens.overrides.enable": {
"default": false,
"description": "Enable a code lens that shows method override count and command to peek locations.",
"scope": "window",
"type": "boolean"
},
"intelephense.codeLens.parent.enable": {
"default": false,
"description": "Enable a code lens that indicates if a method has a parent implementation and command to peek location.",
"scope": "window",
"type": "boolean"
},
"intelephense.codeLens.references.enable": {
"default": false,
"description": "Enable a code lens that shows a reference count and command to peek locations.",
"scope": "window",
"type": "boolean"
},
"intelephense.codeLens.usages.enable": {
"default": false,
"description": "Enable a code lens that shows a trait usages count and command to peek locations.",
"scope": "window",
"type": "boolean"
},
"intelephense.compatibility.correctForArrayAccessArrayAndTraversableArrayUnionTypes": {
"default": true,
"description": "Resolves `ArrayAccess` and `Traversable` implementations that are unioned with a typed array to generic syntax. eg `ArrayAccessOrTraversable|ElementType[]` => `ArrayAccessOrTraversable<mixed, ElementType>`.",
Expand Down
28 changes: 28 additions & 0 deletions types/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4360,6 +4360,33 @@
---@class lspconfig.settings.html
---@field html _.lspconfig.settings.html.Html

---@class _.lspconfig.settings.intelephense.Implementations
-- Enable a code lens that shows an abstract and interface implementations count and command to peek locations.
---@field enable boolean

---@class _.lspconfig.settings.intelephense.Overrides
-- Enable a code lens that shows method override count and command to peek locations.
---@field enable boolean

---@class _.lspconfig.settings.intelephense.Parent
-- Enable a code lens that indicates if a method has a parent implementation and command to peek location.
---@field enable boolean

---@class _.lspconfig.settings.intelephense.References
-- Enable a code lens that shows a reference count and command to peek locations.
---@field enable boolean

---@class _.lspconfig.settings.intelephense.Usages
-- Enable a code lens that shows a trait usages count and command to peek locations.
---@field enable boolean

---@class _.lspconfig.settings.intelephense.CodeLens
---@field implementations _.lspconfig.settings.intelephense.Implementations
---@field overrides _.lspconfig.settings.intelephense.Overrides
---@field parent _.lspconfig.settings.intelephense.Parent
---@field references _.lspconfig.settings.intelephense.References
---@field usages _.lspconfig.settings.intelephense.Usages

---@class _.lspconfig.settings.intelephense.Compatibility
-- Resolves `ArrayAccess` and `Traversable` implementations that are unioned with a typed array to generic syntax. eg `ArrayAccessOrTraversable|ElementType[]` => `ArrayAccessOrTraversable<mixed, ElementType>`.
--
Expand Down Expand Up @@ -4708,6 +4735,7 @@
---@field server "off" | "messages" | "verbose"

---@class _.lspconfig.settings.intelephense.Intelephense
---@field codeLens _.lspconfig.settings.intelephense.CodeLens
---@field compatibility _.lspconfig.settings.intelephense.Compatibility
---@field completion _.lspconfig.settings.intelephense.Completion
---@field diagnostics _.lspconfig.settings.intelephense.Diagnostics
Expand Down

0 comments on commit bccd2b6

Please sign in to comment.