VSC syntax control not working anymore

Hi all,

I’m experiencing an issue where the DSL syntax reporting and item validation stopped ( I think) working in VS Code (v1.96.x / Extension v1.17.1). It was working perfectly before, and I haven’t changed my workspace structure or settings.

The symptoms:

  • No syntax error reporting in .rules or .items files.

  • The extension seems to ignore the IP address in my .code-workspace file.

The logs: In the Language Server output, I see the following error: Error: getaddrinfo ENOTFOUND openhabianpi

What I’ve tried:

  • Verified my .code-workspace settings: "openhab.connection.host": "192.168.100.50" is set.

  • Checked Global/User settings to ensure no override to openhabianpi exists.

  • Verified “Workspace Trust” is enabled for the folder.

  • Restarted VS Code and used “Developer: Reload Window” multiple times.

  • Confirmed the REST API is reachable via the browser at the specified IP.

Even though my workspace specifies the IP address, the extension still tries to resolve the default openhabianpi hostname. Has anyone else seen this behavior in the recent update, or is there a new setting I’m missing?

Thanks in advance for the help!

No, still working fine with 5.1.0 Release

Compare to my workspace settings:

{
    "workbench.iconTheme": "openhab",
    "openhab.connection.host": "192.168.2.212",
    "openhab.connection.authToken": "oh.restapi.....",
    "openhab.connection.port": 8080,
    "openhab.languageserver.remoteEnabled": true,
    "openhab.languageserver.remotePort": 5007,
    "openhab.useRestApi": true
}

Double check you don’t have any overriding settings in the different settings options: