From bccd2b6b7e9c2551fe5881d46ee58966c22c99a0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 9 Aug 2024 01:29:24 +0000 Subject: [PATCH] chore(build): auto-generate vimdoc, schemas and annotations --- schemas/intelephense.json | 30 ++++++++++++++++++++++++++++++ types/lsp.lua | 28 ++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/schemas/intelephense.json b/schemas/intelephense.json index 2c859da..51679f1 100644 --- a/schemas/intelephense.json +++ b/schemas/intelephense.json @@ -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`.", diff --git a/types/lsp.lua b/types/lsp.lua index ea46da3..438216c 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -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`. -- @@ -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