-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Editors - pathsToEditors should ignore folders #136359
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit worried that doing the stat
everytime now, even when we now the file exists could slow down startup. This is on the critical path of the perf machine, so we should probably avoid the file service use unless we need it.
@bpasero, I think that is a fair concern, though what other option do we have to detect that the path is a folder without making a |
Whoever is setting the |
@bpasero, what about adding file/folder information to |
Yeah, something like that is what I had in mind. It would probably be sufficient to just indicate if its a file or folder. |
Perf-wise, what's the difference between The code already calls |
@joaomoreno, I believe that the concern was that originally |
For your intended purposes, you're always passing |
As far as I can tell, I could be wrong, |
I see now. Sad! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lszomoru please see my 💄 change that I just pushed. I only changed to have the FileType
instead of a boolean.
Co-authored-by: Benjamin Pasero <[email protected]>
Co-authored-by: Benjamin Pasero <[email protected]>
Ignore folders when creating the editor inputs.