Skip to content

Commit

Permalink
Fix: Use ${node_bin} for the node binary (#97)
Browse files Browse the repository at this point in the history
With the latest version of lsp_utils a change was introduced [1] that allows using a locally
managed node runtime instead of the system one. For that to work, the "node" command
needs to use a variable.

[1] sublimelsp/lsp_utils@403345a
  • Loading branch information
rchl authored Feb 24, 2021
1 parent dc37e55 commit fbd2a67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion LSP-vue.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"command": ["node", "${server_path}", "--stdio"],
"command": ["${node_bin}", "${server_path}", "--stdio"],
"languages": [
{
"languageId": "vue",
Expand Down
4 changes: 0 additions & 4 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ class LspVuePlugin(NpmClientHandler):
server_directory = 'server'
server_binary_path = os.path.join(server_directory, 'node_modules', 'vls', 'bin', 'vls')

@classmethod
def install_in_cache(cls) -> bool:
return False

@classmethod
def on_client_configuration_ready(cls, configuration: dict):
view = sublime.active_window().active_view()
Expand Down

0 comments on commit fbd2a67

Please sign in to comment.