Skip to content

Commit 771342f

Browse files
authored
Add bash-ts-mode support (#3953)
1 parent e1bdae2 commit 771342f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
* Changelog
22
** Unreleased 8.0.1
3+
* ~lsp-bash~ now supports ~bash-ts-mode~
34
* ~lsp-ruby-syntax-tree~, ~lsp-solargraph~, ~lsp-sorbet~, ~lsp-steep~, and ~lsp-typeprof~ now support ~ruby-ts-mode~
45
* Drop support for emacs 26.1 and 26.2
56
* Added support for ~textDocument/linkedEditingRange~ via

clients/lsp-bash.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ See instructions at https://marketplace.visualstudio.com/items?itemName=mads-har
6868
"Check whether `sh-shell' is sh or bash.
6969
7070
This prevents the Bash server from being turned on in zsh files."
71-
(and (eq major-mode 'sh-mode)
71+
(and (memq major-mode '(sh-mode bash-ts-mode))
7272
(memq sh-shell '(sh bash))))
7373

7474
(lsp-register-client
7575
(make-lsp-client
7676
:new-connection (lsp-stdio-connection #'lsp-bash--bash-ls-server-command)
77+
:major-modes '(sh-mode bash-ts-mode)
7778
:priority -1
7879
:activation-fn #'lsp-bash-check-sh-shell
7980
:environment-fn (lambda ()

lsp-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ Changes take effect only when a new session is started."
764764
(sql-mode . "sql")
765765
(vimrc-mode . "vim")
766766
(sh-mode . "shellscript")
767+
(bash-ts-mode . "shellscript")
767768
(ebuild-mode . "shellscript")
768769
(pkgbuild-mode . "shellscript")
769770
(scala-mode . "scala")

0 commit comments

Comments
 (0)