Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Add file tree exclude in core #10634

Open
core-ai-bot opened this issue Aug 30, 2021 · 5 comments
Open

[CLOSED] Add file tree exclude in core #10634

core-ai-bot opened this issue Aug 30, 2021 · 5 comments

Comments

@core-ai-bot
Copy link
Member

Issue by ficristo
Friday May 13, 2016 at 08:14 GMT
Originally opened as adobe/brackets#12417


Right now every time an user has a performance issue one of the first things is to ask to install an extension so to exclude some files from the watchers.
It would be nice to have it in the core, to reduce these issues.
It would be help my PR adobe/brackets#12190 because then I could read to exclude list from the configuration.
Plus all of these extensions seems to mess with a private method _indexFilter which could results in some problems in the future.

There are some extensions but I was mostly think to this one:
https://github.com/zaggino/brackets-file-tree-exclude
/cc@zaggino

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Friday May 13, 2016 at 08:50 GMT


Fine with me, but there should be some sort of icon/indicator that there were some entries hidden from the file tree and the user would be taken to the filter settings when he clicks that icon.

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Friday May 13, 2016 at 09:06 GMT


Mmm totally my fault to not try the extensions before...
What I'm personally really interested is the configuration for the purpose of the PR #12190.
Now I'm not sure if I really want all the features of those extensions...

@core-ai-bot
Copy link
Member Author

Comment by petetnt
Friday May 13, 2016 at 10:23 GMT


Check out my enhancement proposal called black-box in adobe/brackets#11833 (comment) which is basically File Tree Exclude +@zaggino's suggestion for UI interactions.

edit: I'll just add it here:

I was thinking something along the lines:

  • Create a list of common suspects to black-box. This list would include things such as:
    • node_modules
    • bower_components
    • tmp-folders (or temp, or similar)
    • maybe lib/ and vendor/ too.

node_modules is the most important as by design they contain tons of files

  • These black-boxed files, which mostly would be external libraries and temporary files, would contains following attributes:
    • They are not being watched for changes by default (filtered away during FileSystem.prototype._watchEntry?
    • They are marked as black-boxed in the folder tree (somehow. how?)
    • Maybe not included in searches either
  • black-boxed files can be browsed, opened and modified normally
    • If a black-boxed file is modified, it gains the following attributes
      • It's added to the watched files (/roots)
      • It's added to the searches
    • These additional files could either be: saved until session ends (Brackets is closed) or to ´state.json` and persisted forever.
    • They right clicking an black-boxed file (tree) would offer an option to remote the file (tree) from the blackbox
  • Vice versa any folder/file could be black-boxed by right clicking the file (tree)
    • This could either be session long, or persisted by brackets.json
  • The list of common suspects could be found and extended in preferences.json

Benefits

  • (HUGE) performance benefits (possibly?)
  • Ability to browse and modify file structures that cause performance issues within Brackets as they wouldn't have to be excluded in the FileTree anymore

Risks

  • Just an concept, could need quite a lot work to perform correctly
  • Might create some confusion about some files not being watched / searched
    • Can be avoided with proper introduction to the feature

@core-ai-bot
Copy link
Member Author

Comment by asthomasdk
Wednesday May 25, 2016 at 22:24 GMT


This would indeed be good to have built in. We have huge performance issues with new environments on our default projects - until we install https://github.com/zaggino/brackets-file-tree-exclude - after which they go away.

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Tuesday Aug 16, 2016 at 16:50 GMT


I much prefer the approach in #12647, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant