Thanks, it got me a bit closer but I couldn't get the wordpress stub to be 
recognized. I tried all variants I could think of, including leaving out 
the "*" selector in workspaceConfigurations like this:

{
"initializationOptions": {
"licenceKey": "XXXXX"
},
"workspaceConfigurations": {
"intelephense": {
"stubs": [
"wordpress"
]
}
}
}

But the licence key definitely looks like it works there. Premium functions 
work.  

onsdag 25 augusti 2021 kl. 17:27:13 UTC+2 skrev [email protected]:

> 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/7f84f5b5-8191-445c-84b8-46311584843dn%40googlegroups.com.

Reply via email to