Skip to content

Commit d0ddbf8

Browse files
author
Chen Bin
committed
guess more file extensions when dealing with typescript/javascript
1 parent 53752d3 commit d0ddbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

find-file-in-project.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ You can override this by setting the variable `ffip-project-root'."
10201020
((and (or (derived-mode-p 'js-mode)
10211021
(memq major-mode '(typescript-mode)))
10221022
(string-match-p "^[^.]*$"(file-name-nondirectory file)))
1023-
(dolist (ext '(".ts" ".js"))
1023+
(dolist (ext '(".ts" ".tsx" ".js" ".jsx"))
10241024
;; guess physical path
10251025
(cond
10261026
;; "./lib/A.js" or "./lib/A.ts"

0 commit comments

Comments
 (0)