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

Channel Formatting Bug #55

Closed maxbec closed 3 years ago

maxbec commented 3 years ago

I created a test-items with the following content. (Examples from above)

Number:Temperature Temp_Bad_Temp "Bad [%.2f %unit%]" {mqtt="<[mosquitto:misensor/Bad:state:JSONPATH($.temperature)]", alexa="TemperatureSensor.temperature" [scale="Celsius"], expire="2h,state=UNDEF"} Number:Temperature Temp_Bad_Temp "Bad [%.2f %unit%]" {mqtt="<[mosquitto:misensor/Bad:state:JSONPATH($.temperature)]", alexa="TemperatureSensor.temperature", expire="2h,state=UNDEF"}

String A "B" (D) {autoupdate="false", alexa="ThermostatController.thermostatMode" [OFF="OFF", HEAT="ON", AUTO="AUTO"]} After formatting it looks like this:

image

When I delete :Temperature it looks like nothing is destroyed. But the channels are not listed in new columns either.

image

I think it looks worse than before. 😢 Tested with oh-alignment-tool-2.0.9-beta.1.vsix.