Just started using VS Code with the OH2 plugin and I was working on my first sitemap file. OH2 kept ignoring it due to errors every time I saved it. How do I ensure that VS Code is set up properly to help me check for errors in syntax etc?
Thanks @Moxified… I did read that documentation and the section regarding Rule Validation said the Language Server is active by default. I wasn’t seeing it flag anything. Perhaps I’m missing something but I did read first. Apologies as I’m not trying to be spoon fed without spending the effort.
This is what I read… This extension comes with Language Server Protocol support. Language servers allow you to add your own validation logic to files open in VS Code. openHAB from version openHAB 2.2.0 Build #1065 (SNAPSHOT) has the Language Server exposed on 5007 port. openHAB 2.2 since build #1084 has LSP feature enabled in the runtime, so there are no additional steps for you to make it work.