I would like to share some experience with you about using the openHAB VS Code extension and the problem I faced.
In VS Code the openHAB Extension didn’t load although I properly configured the extension settings as well as had my openHAB config files (like .items) opened.
The openHAB VS Code extension expects to have the conf-folder as the root folder in your working directory of the currently opened VS Code window. So my current setup in VS Code is to open two fresh windows, one has my whole samba shared folder as the root folder and the second window has just the conf-folder of openHAB as the root folder.
- openHAB in docker container controlled by docker compose. Shared ports according to the docker compose configuration manuals. I shared port 8080 and 5007
- samba client for sharing the directory where all files regarding my server setup are located. in one of the sub directories the conf-folder for openHAB is located
I mounted the samba shares and navigated through several sub folders to get to my openHAB conf folder. But the extension didn’t show up. The problem was, the VS Code extension for openHAB expects to have the
conf-folder as the root folder in the current working directory of VS Code. Why, I don’t know.
@Confectrician I’m not sure if you are the right person to link here. I just saw you answering a lot of questions regarding the VS Code extension. Can I kindly ask you about your opinion on the described problem? (if I should link someone else, please just let me know.)
If somebody else finds this information useful maybe there is a chance to integrate this information into the manual of the openHAB VS Code extension.
- Add this information to the openHAB VS Code extension manual
- Not necessary to add this information