Navigate : File.. conditionally filter .js when .ts present?

I mostly use Navigate: File.. to open files in my project. I recently found out how to filter out the js/map/css files which is usually great since I mostly work with ts/html/scss files.

However, occasionally I do need to work with js files from imported libraries.

Is there a way to filter out js/map files only when a corresponding ts file is present?

Most of my ts files are exported functions, not classes, so Navigate: Class is not an option.

Thanks,

Sam

2 comments
Comment actions Permalink

You can configure the transpiler to put the generated files in a separate directory and then mark this directory as excluded.
Related tickets: https://youtrack.jetbrains.com/issue/IDEA-107386, https://youtrack.jetbrains.com/issue/WEB-12345, https://youtrack.jetbrains.com/issue/WEB-12343

0
Comment actions Permalink

Good solution. Thank you!

0

Please sign in to leave a comment.