Great idea!
There’s more things to come with this extension, so I’m sure there will be something to discuss.
I spent my weekend polishing separate Items view in the sidebar. You’ll be able to see a tree view of your grouped items, find references to them in the code, copy name and more
Oh, and it utilizes REST API!
I hope I’ll be able to deliver working 0.1.0 next week.
This is just great. Even though it’s a pre-release, it’s way more suitable to be the official editor than openHAB Designer. It just has the ultimate feature that designer doesn’t have: Creating new files
When trying to access suggestions via ‘Ctrl+Space’, I get the following error: Error while connecting: Error: getaddrinfo ENOTFOUND openhabianpi openhabianpi:8080
Is this a bug?
The completions service is tightly coupled with the REST API of the openHAB, so in order to get them, you need to edit your user settings in VS Code ( Ctrl + ,) and add the following parameters - openhab.host and openhab.port (optionally).
Do you think that error checking for sitemaps and things/items files would be a possibility in the future? I think this is the only feature that the smarthome designer has over the VS code extension.
Awesome, I did see that issue but it’s marked for Xtend. I’d guess that it’s a little more difficult to do it with the unique formatting of Items etc which would probably need it’s own LSP right?
It works now!
If it’s not a big effort for yourself, could you add in the readme that the url for the hostname can also be an ip address (i just tried it and it works!)?
@Dominic_Bonneau I believe it is the same for osx as it is for windows.
Open the extensions pane on the left, then open the options menu (three dot) link at the top. Choose to install from VSIX and then navigate to where you saved the vsix file.
Thanks for this, I use a text editor for writing my rules because the SmartHome designer is not good. This is a welcome change and I am willing to download VSCode, but I was wondering what would be required to make this compatible with other Visual Studio editions, I’m currently using VS2015 Pro.