maxbec / openHAB-Alignment-Tool

This extension adds support for formatting and indenting openHAB files. At the moment only the item-files are supported.
https://marketplace.visualstudio.com/items?itemName=max-beckenbauer.oh-alignment-tool
Eclipse Public License 2.0
21 stars 4 forks source link

ChannelColumn not working correctly anymore #62

Open CWempe opened 3 years ago

CWempe commented 3 years ago

There seems to be a regression with ChannelColumn in v2.1.6.

In v2.0.0 each Binding parameter (like mqtt's < and >) where moved to new lines. See https://github.com/MaxBec/openHAB-Alignment-Tool/issues/31.

But it does not anymore for this simple example:

Number  aaa  "bbb"  {mqtt=">[mosquitto:ddd:command:*:default],<[mosquitto:ddd:state:default]"}
maxbec commented 3 years ago

Hi Christoph,

thank you for the report. Do you have further information on the strings i can to expect. Do they always start with >[ and end with ]?

CWempe commented 3 years ago

In my case, yes. I guess this is specific foo the old mqtt1 binding I still use (with OH2.5). https://v2.openhab.org/addons/bindings/mqtt1/

I am slowly migration to the new mqtt binding where most of the "complex" configuration is in the thing configuration files. The item configuration is rather simple for that.

It might not be worth to support this old binding configuration. But on the other hand it did work in a older version.