-
Notifications
You must be signed in to change notification settings - Fork 677
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
add ignore root folder setting #1065
Conversation
Thanks for taking a stab at this @asg0451 I understand the approach taken, but I am concerned that it "splits" the ignoring of files/folders into two different settings, and it only provides an on/off switch to supporting multiple workspace folders. Have you considered a way to "incorporate" this into the behavior of In my originally (although limited) thinking about this issue, I was wondering whether in case there is more than one workspace folder, the glob would (not) include the folder name. For example, given:
and
I would expect something like:
An alternative, which I don't know if I like tbh, is to have a map of folder to ignore patterns:
But honestly the array approach seems more sensible to me. Let me know your thoughts, I admittedly haven't given this a proper deep dive, so I might be missing some edge cases |
hey @riccardoferretti, i understand your thinking there. my thought was that changing the meaning of the i also don't love the map idea, as it doesn't make sense for regular workspaces. what do you think? |
Yup, I can see the possible confusion, although I wonder if practically it would be clearer than the current situation - here is what I mean: When the workspace has a single folder, you don't see the folder in the explorer, so intuitively you wouldn't use in your glob (which is also the behavior today, and the reason why on simple projects we haven't had issues). When the workspace has more than a folder, then they show up in the explorer, so it does "feel" more right to include it in the glob So the root folder "becomes" part of the explorer, and in the same way I can see how it could "become" part of the glob. What do you think? |
Hi @asg0451 are you still looking into this? |
Not at the moment, sorry. I had an even bigger issue with multiroot
workspaces and switched to just having 2 windows 💀
once I have time to resolve that, I can look back into this. if you just
want to tap it in tho I won't mind 🤷♂️
…On Thu, Sep 15, 2022, 9:12 AM Riccardo ***@***.***> wrote:
Hi @asg0451 <https://github.com/asg0451> are you still looking into this?
—
Reply to this email directly, view it on GitHub
<#1065 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBIDELKTJ3TARYT3Q5O3HLV6NDIBANCNFSM6AAAAAAQDLIYEQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What other problem did you have? can you file an issue for that? |
it wasn't to do with foam at all. vscode just started taking forever to start up (load extensions / index project code) in multiroot mode. |
I followed my approach in #1083, happy to hear comments |
replaced by #1083 |
looks good to me man, sorry i didnt follow through on it. i'm still off of multiroot, but maybe i'll try it again with this change 👍 |
Fixes #1063