zzehring / intellij-jsonnet

An Intellij Plugin for grafana/jsonnet-language-server
Apache License 2.0
14 stars 12 forks source link

fix: handle different plugin paths #100

Closed zzehring closed 1 month ago

zzehring commented 1 month ago

It seems that depending on what version the language server plugin was first installed (or perhaps what version of IDE you are using), the plugin path can be jsonnet-language-server and Jsonnet Language Server under the plugins/ root. v0.3.0 switched to jsonnet-language-server, which broke existing plugins.

This change handles both scenarios by checking if jsonnet-language-server dir exists, and if not falls back to using Jsonnet Language Server.

Fixes: https://github.com/zzehring/intellij-jsonnet/issues/97