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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 76 deletions

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())),
);