Visual Studio Code extension 1.0.2: feature request — hover support for YAML files (MainUI widgets)

Hover on item names in .js files is a real improvement — thanks for adding it.

Could the same be extended to YAML? MainUI widgets are written in YAML and reference exactly the same items, for example:

yaml

text: '=items.ShellyEM33FaseWPOnline.state !== ''ON'' ? ''uit'' :
  (Number.parseFloat(items.ShellyEM33FaseWPLatency.state) * 1000).toFixed(0) + '' ms'''

When building a widget you are constantly checking item names and current states, so hover would help there as much as it does in rules.

From the bundled client/out/extension.js it looks like a one-element change to the document selector:

js

vscode.languages.registerHoverProvider(
  [ {language:"openhab",  scheme:"file"},
    {language:"javascript", scheme:"file"} ],   // + {language:"yaml", scheme:"file"}
  { provideHover(...) { ... } }
);

I patched my installed copy with {language:"yaml", scheme:"file"} added and hover works in widget YAML as well.

One thing you may want to weigh: YAML is also used for things unrelated to openHAB, such as ESPHome device configurations, where a word may coincidentally match an item name. That is harmless in practice, but a setting like openhab.hover.languages would let people decide for themselves.

Configurable: https://github.com/HenmusZev/openhab-vscode/tree/v1.0.3