Skip to content

Commit

Permalink
lsp-javascript: add js-ts-mode to activation list
Browse files Browse the repository at this point in the history
  • Loading branch information
DCsunset committed Aug 3, 2023
1 parent 9550983 commit f3bd4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/lsp-javascript.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
(defun lsp-typescript-javascript-tsx-jsx-activate-p (filename &optional _)
"Check if the js-ts lsp server should be enabled based on FILENAME."
(or (string-match-p "\\.[cm]js\\|\\.[jt]sx?\\'" filename)
(and (derived-mode-p 'js-mode 'typescript-mode 'typescript-ts-mode)
(and (derived-mode-p 'js-mode 'js-ts-mode 'typescript-mode 'typescript-ts-mode)
(not (derived-mode-p 'json-mode)))))

;; Unmaintained sourcegraph server
Expand Down

0 comments on commit f3bd4bf

Please sign in to comment.