OpenLiberty / liberty-language-server

The Liberty Config Language Server provides language server features for Liberty server configuration files through any of the supported client IDEs.
Eclipse Public License 2.0
5 stars 11 forks source link

would be nice if <quickStartSecurity> completion could be single-step #265

Open scottkurz opened 7 months ago

scottkurz commented 7 months ago

First, let me recognize that this type of issue is the next order of convenience :) I know there are still more fundamental things to do more for the first pass, but let me write it up anyway.

To add config like this:

<quickStartSecurity userName="abc" userPassword="123"></quickStartSecurity>

I need to do three separate completions. One for the element itself, then one for each attribute.

But I never use this element without supplying these attributes. I'm almost surprised they're not required in XSD.

I'd find it more useful for the completion to start more like:

<quickStartSecurity userName="admin" userPassword="pwd"/>

If this isn't easy to do with Lemminx's XSD-based completion, would it be possible to do more as a "snippet" ?