-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
✨ Exclude archived steps from VSCode search #3746
base: master
Are you sure you want to change the base?
Conversation
Quick links (staging server):
Login: chart-diff: ✅No charts for review.data-diff: ✅ No differences foundLegend: +New ~Modified -Removed =Identical Details
Hint: Run this locally with etl diff REMOTE data/ --include yourdataset --verbose --snippet Automatically updated datasets matching weekly_wildfires|excess_mortality|covid|fluid|flunet|country_profile|garden/ihme_gbd/2019/gbd_risk are not included Edited: 2025-01-14 10:05:40 UTC |
00a6094
to
699b6b1
Compare
@Marigold Thanks for looking into this.
That's been my experience as well. The extension is a bit slow, and I've also preferred to use the native search for now. If I understand your proposal, I need to first run I would find it nice if there was the option to "unarchive steps" so that I can search for all steps. |
Hi @Marigold thanks for looking into this. I use Screen.Recording.2025-01-21.at.16.38.02.movI don't know why it's so slow for you. But we could improve the extension. For example, it could search only in But if you think that's not a good approach, then your solution is also fine. Feel free to merge if you think this is convenient for you, thanks! |
Well, I have a hunch, my old laptop thinks twice about every operation it does. This way is more personally useful for things like large-scale refactorings (where you don’t want to be fixing archived steps) and reducing clutter when searching for non-step modules. It’s definitely more of a nice-to-have, though. I’ll keep it open a bit longer before deciding whether to merge it or not. I’m still unsure if the potential confusion from not being able to find archived steps is worth it. |
Motivation
Searching in VSCode can be frustrating when we keep old, archived versions of code in the repository. Quite frequently, I find myself yelling at my computer, only to realize that I was editing the wrong dataset (found through VSCode quick search). This problem has already been addressed by the find-latest-step extension, although it lacks some capabilities of the native VSCode quick search. I don't personally use the
find-latest-etl-step
extension because it's slow on my laptop and I prefer the fuzzy matching in quick search (although other people use it).Solution
Identify all inactive steps and exclude them from the VSCode search toolbar and file explorer by adding them to
"files.exclude"
and"search.exclude"
in.vscode/settings.json
. Running the script excluded over 600 datasets. One disadvantage is that all VSCode users must be aware that archived files can't be found there and must instead be opened, for example, viacode etl/path/to/script
from the terminal.