From 0051685bf56a5dfa513861bea66b534557271605 Mon Sep 17 00:00:00 2001 From: Matsuuu Date: Tue, 14 Nov 2023 09:14:12 +0200 Subject: [PATCH] Fix around the sublime lsp settings --- .../LSP-custom-elements.sublime-settings | 7 ------- lib/client/sublime/LSP-custom-elements/plugin.py | 1 + usage-testing-project/src/foo.ts | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/client/sublime/LSP-custom-elements/LSP-custom-elements.sublime-settings b/lib/client/sublime/LSP-custom-elements/LSP-custom-elements.sublime-settings index 814a8b1..a5a4ded 100644 --- a/lib/client/sublime/LSP-custom-elements/LSP-custom-elements.sublime-settings +++ b/lib/client/sublime/LSP-custom-elements/LSP-custom-elements.sublime-settings @@ -1,16 +1,9 @@ { - // General settings - "show_diagnostics_panel_on_save": 0, - // Language server configurations "clients": { "custom-elements-language-server": { - // enable this configuration "enabled": true, - // the startup command -- what you would type in a terminal "command": ["${node_bin}", "${server_path}", "--stdio"], - // the selector that selects which type of buffers this language server attaches to - "selector": "source.js, source.jsx, source.ts, source.tsx" } } } diff --git a/lib/client/sublime/LSP-custom-elements/plugin.py b/lib/client/sublime/LSP-custom-elements/plugin.py index 9f2f6f8..88a65a5 100644 --- a/lib/client/sublime/LSP-custom-elements/plugin.py +++ b/lib/client/sublime/LSP-custom-elements/plugin.py @@ -17,4 +17,5 @@ class LspCustomElementsPlugin(NpmClientHandler): server_directory = 'server' # TODO: Check if this path works ? server_binary_path = os.path.join(server_directory, 'node_modules', 'custom-elements-languageserver', 'bin', 'custom-elements-languageserver.js') + print("Path " + server_binary_path) diff --git a/usage-testing-project/src/foo.ts b/usage-testing-project/src/foo.ts index 5af7b38..8480bdb 100644 --- a/usage-testing-project/src/foo.ts +++ b/usage-testing-project/src/foo.ts @@ -2,6 +2,7 @@ import { html } from "lit-html"; import "@shoelace-style/shoelace/dist/components/input/input.js"; export const temp = html` +