Sublime Forum

Hiding .js files from Goto Anything only if there exist .ts file

#1

Hi All,

I want to hide .js files from Goto Anything when there is a .ts file with the same basename. In Visual Code there seems to be a setting similar to this:

“**/*.js”: {“when”: “$(basename).ts”}

I am wondering if there is anything equivalent in ST3, using a config, or maybe even with an addon?

1 Like

#2

plugins have no capability to affect what files are considered to be included in a project and there are no similar settings like what you have shown VSCode has, so I don’t think it’s possible in ST3 atm

2 Likes

#3

Should I ‘move’ this topic to feature request then?

0 Likes

#4

good idea :slight_smile:

0 Likes

#5

I ran into the same problem earlier, as a workaround I put all my typescript files in a folder called ‘ts’ and hide all ‘.js’ files using ‘file_exclude_patterns’.

0 Likes

#6

That’s a good idea actually! Maybe the $basename can be a bit too specific. When I use stylus, I don’t care about the .css (although there’s only one), same for .js with all the .coffee.

0 Likes