tweak: Make LSP message more accurate when LSPs disabled (#5814)

This commit is contained in:
Kaspar 2025-12-19 22:34:04 +00:00 committed by GitHub
parent dacbbe3184
commit 1bc1ea8b47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,7 +154,11 @@ export function Sidebar(props: { sessionID: string }) {
</box>
<Show when={sync.data.lsp.length <= 2 || expanded.lsp}>
<Show when={sync.data.lsp.length === 0}>
<text fg={theme.textMuted}>LSPs will activate as files are read</text>
<text fg={theme.textMuted}>
{sync.data.config.lsp === false
? "LSPs have been disabled in settings"
: "LSPs will activate as files are read"}
</text>
</Show>
<For each={sync.data.lsp}>
{(item) => (