diff --git a/schemas/intelephense.json b/schemas/intelephense.json index e47344f..9d0e1a9 100644 --- a/schemas/intelephense.json +++ b/schemas/intelephense.json @@ -2,12 +2,6 @@ "$schema": "http://json-schema.org/draft-07/schema#", "description": "PHP code intelligence for Visual Studio Code", "properties": { - "completion.suggestObjectOperatorStaticMethods": { - "default": true, - "description": "PHP permits the calling of static methods using the object operator eg `$obj->myStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`. Defaults to `true`.", - "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`.", @@ -44,6 +38,12 @@ "scope": "window", "type": "number" }, + "intelephense.completion.suggestObjectOperatorStaticMethods": { + "default": true, + "description": "PHP permits the calling of static methods using the object operator eg `$obj->myStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`. Defaults to `true`.", + "scope": "window", + "type": "boolean" + }, "intelephense.completion.triggerParameterHints": { "default": true, "description": "Method and function completions will include parentheses and trigger parameter hints.", diff --git a/types/lsp.lua b/types/lsp.lua index 56d75c4..34ac11e 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -2929,14 +2929,6 @@ ---@class lspconfig.settings.html ---@field html _.lspconfig.settings.html.Html ----@class _.lspconfig.settings.intelephense.Completion --- PHP permits the calling of static methods using the object operator eg `$obj->myStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`. Defaults to `true`. --- --- ```lua --- default = true --- ``` ----@field suggestObjectOperatorStaticMethods boolean - ---@class _.lspconfig.settings.intelephense.Compatibility -- Resolves `ArrayAccess` and `Traversable` implementations that are unioned with a typed array to generic syntax. eg `ArrayAccessOrTraversable|ElementType[]` => `ArrayAccessOrTraversable`. -- @@ -2968,6 +2960,12 @@ -- default = 100 -- ``` ---@field maxItems number +-- PHP permits the calling of static methods using the object operator eg `$obj->myStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`. Defaults to `true`. +-- +-- ```lua +-- default = true +-- ``` +---@field suggestObjectOperatorStaticMethods boolean -- Method and function completions will include parentheses and trigger parameter hints. -- -- ```lua @@ -3304,7 +3302,6 @@ ---@field trace _.lspconfig.settings.intelephense.Trace ---@class lspconfig.settings.intelephense ----@field completion _.lspconfig.settings.intelephense.Completion ---@field intelephense _.lspconfig.settings.intelephense.Intelephense ---@class _.lspconfig.settings.java_language_server.Trace