You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose lsp-bash-allowed-shell and improve warning (#4620)
* lsp-bash: Remove major mode duplication
These are already filtered by `:major-modes` so there's no need to
filter them again in the `:activation-fn`.
`:major-modes` was originally removed in:
- b77aecf
But then reintroduced in:
- 771342f
* lsp-bash: Expose lsp-bash-allowed-shells
Make the `sh-shell` values that are filtered by `:activation-fn`
configurable without needing to override `lsp-bash-check-sh-shell`
This allows people to allow values like `bats` and also makes it
slightly clearer why those values aren't supported by default when the
major mode is, which took me a long time to debug.
* lsp-mode: Improve warning about :activation-fn
To make it easier to debug situations where the `:major-mode` is
supported but `:activation-fn` prevents the buffer from being supported
for other reasons, such as `lsp-bash` rejecting an `sh-shell` value of
`bats`.
* lsp-bash: Fix for unbound sh-shell
Fix the following test:
Test lsp-mock-doc-changes-wrong-version condition:
(void-variable sh-shell)
By only checking `lsp-bash-allowed-shells` when `sh-shell` is bound to a
value. For reasons that I'm not entirely clear about, this was fine
previously when checking against a static list.
---------
Co-authored-by: Jen-Chieh Shen <jcs090218@gmail.com>
Copy file name to clipboardExpand all lines: lsp-mode.el
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9495,9 +9495,10 @@ You may find the installation instructions at https://emacs-lsp.github.io/lsp-mo
9495
9495
This issue might be caused by:
9496
9496
1. The language you are trying to use does not have built-in support in `lsp-mode'. You must install the required support manually. Examples of this are `lsp-java' or `lsp-metals'.
9497
9497
2. The language server that you expect to run is not configured to run for major mode `%s'. You may check that by checking the `:major-modes' that are passed to `lsp-register-client'.
9498
-
3. `lsp-mode' doesn't have any integration for the language behind `%s'. Refer to https://emacs-lsp.github.io/lsp-mode/page/languages and https://langserver.org/ .
9499
-
4. You are over `tramp'. In this case follow https://emacs-lsp.github.io/lsp-mode/page/remote/.
9500
-
5. You have disabled the `lsp-mode' clients for that file. (Check `lsp-enabled-clients' and `lsp-disabled-clients').
9498
+
3. The language server that you expect to run has an `:activation-fn` passed to `lsp-register-client` that prevents it supporting this buffer.
9499
+
4. `lsp-mode' doesn't have any integration for the language behind `%s'. Refer to https://emacs-lsp.github.io/lsp-mode/page/languages and https://langserver.org/ .
9500
+
5. You are over `tramp'. In this case follow https://emacs-lsp.github.io/lsp-mode/page/remote/.
9501
+
6. You have disabled the `lsp-mode' clients for that file. (Check `lsp-enabled-clients' and `lsp-disabled-clients').
9501
9502
You can customize `lsp-warn-no-matched-clients' to disable this message."
0 commit comments