On 25 Aug 2021, at 11:18, Johan Sölve wrote:

Language Server Protocol Support in BBEdit 14 is is a huge improvement! Intelephense have support for Wordpress function definitions by "adding wordpress to the intelephense.stubs array". Can this be done for BBEdit for
example by adding something to Support/BBEdit/Language
Servers/Configuration/intelephense/ ?

I suspect you would add a custom workspace configuration. See <https://www.barebones.com/support/bbedit/lsp-notes.html#advanced>.

I'm only guessing, but I suspect that the JSON would look something like:

{
    "initializationOptions":
    {
        //  stuff goes here
    }

    "workspaceConfigurations":
    {
        "*":
        {
                        "intelephense":
                        {
                                "stubs":
                                        [...array of stubs, or whatever it is 
that intelephense expects...]
                        }
        }
    }
}

Btw I added licence.txt to that folder and it seems to work as far as I can
tell (not sure how to verify that the licence is activated though)

Intelephense enables certain features based on the presence of an active license; their documentation gives a list, I think.

R.

--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/B1A321F7-6124-4787-842F-25AA2351D751%40barebones.com.

Reply via email to