Language Server is started twice #10750
Answered
by
the-mikedavis
uros-5
asked this question in
Troubleshooting
-
Here is config: [[language]]
name = "python"
scope = "source.python"
injection-regex = "python"
shebangs = ["python"]
roots = ["setup.py", "setup.cfg", "pyproject.toml"]
comment-token = "#"
language-servers = ["pyright", "jinja-lsp"]
formatter = { command = "black", args = ["--quiet", "-"] }
auto-format = true
[[language]]
name = "jinja"
language-id = "html"
language-servers = ["jinja-lsp"]
formatter = { command = "jinja2fmt" }
auto-format = false When I open
Later when I open Python file, it starts again same server.
|
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
May 13, 2024
Replies: 1 comment 2 replies
-
I believe our behavior is correct here, opening a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
uros-5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe our behavior is correct here, opening a
jinja
file should startjinja-lsp
with language-id ofhtml
as you have configured. Opening a python file should start a separate instance with language-id set topython
(defaults to the language name if not specified).