Skip to content

Commit

Permalink
lsp-javascript: add cjs extension and js-ts-mode in ts-ls (#4121)
Browse files Browse the repository at this point in the history
  • Loading branch information
DCsunset authored Aug 23, 2023
1 parent 2e6683f commit f8ed844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/lsp-javascript.el
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@

(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 "\\.mjs\\|\\.[jt]sx?\\'" filename)
(and (derived-mode-p 'js-mode 'typescript-mode 'typescript-ts-mode)
(or (string-match-p "\\.[cm]js\\|\\.[jt]sx?\\'" filename)
(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 f8ed844

Please sign in to comment.