jpg0 / ohj

Openhab Javascript Library
Eclipse Public License 2.0
6 stars 2 forks source link

Openhab 3 w. ohj module installed - No IntelliSense in VS code within rules #31

Closed LukasA83 closed 2 years ago

LukasA83 commented 2 years ago

Hi,

maybe an easy question: I'm right now moving from nashorn to graal including rewritting my rules and helpers. I will use ohj module to reduce some of the migration efforts. To edit my scripts I'm using VS code. I noticed, that there is no IntelliSense when I'm editing my rules while there is when creating helpers.

Any suggestion to get intellisense w. JSDOC working for rules? Here is my folder structure: grafik

jpg0 commented 2 years ago

Don't really know about this - it's just standard JS, and it has a .js extension?

LukasA83 commented 2 years ago

I fixed it by creating a jsconfig.json in the "project" root folder to specify the node modules path.