Skip to content

Commit

Permalink
guess more file extensions when dealing with typescript/javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Jan 16, 2025
1 parent 53752d3 commit d0ddbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find-file-in-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ You can override this by setting the variable `ffip-project-root'."
((and (or (derived-mode-p 'js-mode)
(memq major-mode '(typescript-mode)))
(string-match-p "^[^.]*$"(file-name-nondirectory file)))
(dolist (ext '(".ts" ".js"))
(dolist (ext '(".ts" ".tsx" ".js" ".jsx"))
;; guess physical path
(cond
;; "./lib/A.js" or "./lib/A.ts"
Expand Down

0 comments on commit d0ddbf8

Please sign in to comment.