File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1818 (indent-region (point-min ) (point-max ) nil )
1919 (untabify (point-min ) (point-max )))
2020
21+ (ert-deftest auto-mode-alist-ts ()
22+ (find-file (make-temp-file load-file-name nil " .ts" ))
23+ (should (string-equal " typescript-mode" major-mode)))
24+
25+ (ert-deftest auto-mode-alist-tsx ()
26+ (find-file (make-temp-file load-file-name nil " .tsx" ))
27+ (should (string-equal " typescript-mode" major-mode)))
28+
2129(ert-deftest indentation-reference-document-is-reflowed-correctly ()
2230 (with-temp-buffer
2331 (insert-file-contents " test-files/indentation-reference-document.ts" )
Original file line number Diff line number Diff line change @@ -3119,7 +3119,7 @@ Key bindings:
31193119 (folding-add-to-marks-list 'typescript-mode " // {{{" " // }}}" )))
31203120
31213121;;;### autoload
3122- (add-to-list 'auto-mode-alist '(" \\ .ts \\ '" . typescript-mode))
3122+ (add-to-list 'auto-mode-alist '(" \\ .tsx? \\ '" . typescript-mode))
31233123
31243124(provide 'typescript-mode )
31253125
You can’t perform that action at this time.
0 commit comments