openhab / openhab-vscode

VS Code extension for openHAB configuration files
https://marketplace.visualstudio.com/items?itemName=openhab.openhab
Eclipse Public License 2.0
159 stars 47 forks source link

Request items from Rest API after saving an items file #183

Closed Confectrician closed 4 years ago

Confectrician commented 4 years ago

Is your feature request related to a problem? Please describe. Items get loaded on startup currently for the HoverProvider. After saving new Items, those won't get recognised from the HoverProvider until the next startup of vscode.

Describe the solution you'd like We should add an "onSave" action for items files and reload our known items some time after saving the file.

Describe alternatives you've considered None.

Additional context None.

JAMESBOWLER commented 4 years ago

I use https://marketplace.visualstudio.com/items?itemName=natqe.reload

Confectrician commented 4 years ago

Hey @JAMESBOWLER,

Thanks for the tip. Anyways i think it would be smoother if we start a refresh on our own, when saving a file.

Confectrician commented 4 years ago

Fixed in #189