File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 18
18
(indent-region (point-min ) (point-max ) nil )
19
19
(untabify (point-min ) (point-max )))
20
20
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
+
21
29
(ert-deftest indentation-reference-document-is-reflowed-correctly ()
22
30
(with-temp-buffer
23
31
(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:
3119
3119
(folding-add-to-marks-list 'typescript-mode " // {{{" " // }}}" )))
3120
3120
3121
3121
;;;### autoload
3122
- (add-to-list 'auto-mode-alist '(" \\ .ts \\ '" . typescript-mode))
3122
+ (add-to-list 'auto-mode-alist '(" \\ .tsx? \\ '" . typescript-mode))
3123
3123
3124
3124
(provide 'typescript-mode )
3125
3125
You can’t perform that action at this time.
0 commit comments