# VSCode extension for js rules and variables

**URL:** <https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387>\
**Category:** Beginners\
**Created:** [February 13, 2026, 2:15pm UTC](https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387 "2026-02-13T14:15:01Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![sihui](https://community.openhab.org/user_avatar/community.openhab.org/sihui/32/55674_2.png) [@sihui](https://community.openhab.org/u/sihui)\
**Post date:** [July 25, 2026, 9:28am UTC](https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387/22 "2026-07-25T09:28:41Z")

</div>

> [@s0170071](#):
>
> I updated the extension a little further

Great work, extremely useful for troubleshooting, thx a lot.  
Everything works as described, but I did not yet test the settings.

The only thing I noticed is a new error message in VSC, whenever I open a .things, .items, .rules or .sitemap file.  
The error message does not appear when opening .js or .yaml files.  
As I never had `openhabian` installed, I doubt the message is coming from my setup.

```auto
[Error - 11:06:05] Notification handler 'textDocument/didOpen' failed with message: Cannot read properties of undefined (reading 'create')
[TypeError: fetch failed] {
  [cause]: Error: getaddrinfo ENOTFOUND openhabianpi
      at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) {
    errno: -3008,
    code: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: 'openhabianpi'
  }
}

```

---

_[View the full topic](https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387)._
