theme-tools
theme-tools copied to clipboard
shopifyCLIPath doesn't respect locally installed CLI
Problem
"shopifyLiquid.languageServerPath": "./node_modules/.bin/shopify" configuration doesn't work.
Solution
-
LanguageClientneeds initialized with{...serverOptions, options: {cwd: getItFromVSCode()}}. - My second thought is ideally
options.env.PATHshould be prefixed with./node_modules/.binas a best practice to preferdevDependenciesover global installation.