Remove primary/secondary distinction for CachedLspAdapter (#15634)

This PR removes the primary/secondary distinction for
`CachedLspAdapter`s.

After #15624 we weren't relying on the `is_primary` field anywhere, so
we can remove it.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-08-01 13:51:34 -04:00
committed by GitHub
parent 80594cc7f8
commit 7652045903
5 changed files with 34 additions and 76 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ pub fn init(
];
for language in tailwind_languages {
languages.register_secondary_lsp_adapter(
languages.register_lsp_adapter(
language.into(),
Arc::new(tailwind::TailwindLspAdapter::new(node_runtime.clone())),
);
@@ -240,7 +240,7 @@ pub fn init(
let eslint_languages = ["TSX", "TypeScript", "JavaScript", "Vue.js", "Svelte"];
for language in eslint_languages {
languages.register_secondary_lsp_adapter(
languages.register_lsp_adapter(
language.into(),
Arc::new(typescript::EsLintLspAdapter::new(node_runtime.clone())),
);