Find in files only shows TS results for some folders

I'm assuming this is a feature rather than a bug - Find in Files seems to only search TS files under circumstances, I suspect this is:

  • When searching inside packages/dependencies
  • When there exists a TS/JS file pair

I get this is mostly useful, we shouldn't care about what's actually going on inside dependencies, but when things aren't playing ball it'd be useful to actually search through all files, which is what IMO Find in Files should do, if the user wants results restricted they should be applying the restrictions themselves.

Anyone know how to prevent this behaviour?



0

In npm packages that include d.ts files in distribution all js files are explicitly excluded from indexing (note the cross sign in the icon), as the IDE uses d.ts files for completion/types resolving... That's the reason for not including them in search index.

Enabling find.search.in.excluded.dirs Registry key (Help | Find action, type registry... to locate it) should enable searching in explicitly excluded files

0

请先登录再写评论。