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

Exclude git-rebase-todo in recently opened #211438

Closed
wenfangdu opened this issue Apr 26, 2024 · 17 comments · Fixed by #211614
Closed

Exclude git-rebase-todo in recently opened #211438

wenfangdu opened this issue Apr 26, 2024 · 17 comments · Fixed by #211614
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author insiders-released Patch has been released in VS Code Insiders polish Cleanup and polish issue workbench-history History item issues
Milestone

Comments

@wenfangdu
Copy link
Contributor

wenfangdu commented Apr 26, 2024

The recently opened picker does currently not support files.exclude or search.exclude setting, you would have to open a new feature request.

Originally posted by @bpasero in #203872 (comment)

Currently, search.exclude and files.exclude don't work for workbench.action.openRecent:

{
  "files.exclude": {
    "**/.git/**": true
  },
  "search.exclude": {
    "**/.git/**": true
  }
}

image

Please add support.

@bpasero bpasero changed the title [FR] Make workbench.action.openRecent respect files.exclude and search.exclude Respect files.exclude and search.exclude in recently opened Apr 26, 2024
@bpasero bpasero added feature-request Request for new features or functionality workbench-history History item issues and removed triage-needed labels Apr 26, 2024
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Apr 26, 2024
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@wenfangdu
Copy link
Contributor Author

@bpasero I think this feature request is pretty basic, from my past experience, issues moved to the backlog candidate most likely get closed, could you please consider moving it to the backlog?

@franciscacarneiro
Copy link
Contributor

Hello, @andremmsilva and I would like to start working in this. If moved to the backlog, could this issue be assigned to us? Thank you!

@bpasero
Copy link
Member

bpasero commented Apr 26, 2024

I wonder if the example above falls into the category of this filter which we maintain already:

private static readonly COMMON_FILES_FILTER = [
'COMMIT_EDITMSG',
'MERGE_MSG'
];

The idea here being to not automatically add git related files to the history. Is your case any special in terms of git operations?

@wenfangdu
Copy link
Contributor Author

@bpasero I use git rebase a lot, git-rebase-todo should also be filtered out from workbench.action.openRecent, since they are only temporary files:
image

@bpasero
Copy link
Member

bpasero commented Apr 26, 2024

Yeah that sounds reasonable to me, feel free to add it as PR.

@TylerLeonhardt
Copy link
Member

duplicate of #157395 ?

@TylerLeonhardt
Copy link
Member

related: #15604

@bpasero
Copy link
Member

bpasero commented Apr 26, 2024

@TylerLeonhardt this FR is for the "File" > "Open Recent" > "More..." picker. I actually think #157395 can be closed as fixed for March already, I commented.

@wenfangdu
Copy link
Contributor Author

Yeah that sounds reasonable to me, feel free to add it as PR.

@bpasero See #211614

@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Apr 29, 2024
@bpasero bpasero changed the title Respect files.exclude and search.exclude in recently opened Exclude git-rebase-todo in recently opened Apr 29, 2024
@bpasero bpasero modified the milestones: Backlog Candidates, May 2024 Apr 29, 2024
@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels May 2, 2024
@bpasero bpasero added the author-verification-requested Issues potentially verifiable by issue author label May 3, 2024
@vscodenpa
Copy link

This bug has been fixed in the latest release of VS Code Insiders!

@wenfangdu, you can help us out by commenting /verified if things are now working as expected.

If things still don't seem right, please ensure you're on version 03dd3c3 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!

@bpasero bpasero self-assigned this May 3, 2024
@bpasero bpasero added polish Cleanup and polish issue and removed feature-request Request for new features or functionality labels May 24, 2024
@wenfangdu
Copy link
Contributor Author

@bpasero Is this released in 1.90.2? If it is, I think the PR #211614 didn't solve this issue.

@bpasero
Copy link
Member

bpasero commented Jun 25, 2024

Yes, this was part of the 1.90.x release.

@wenfangdu
Copy link
Contributor Author

@bpasero Thanks, perhaps reopen this issue? I just tried, the issue still exists.

@bpasero
Copy link
Member

bpasero commented Jun 25, 2024

It works for me:

  • touch ./git-rebase-todo
  • code-insiders ./git-rebase-todo
  • File > Open Recent : the file does not appear
  • File > Open Recent > More : the file does not appear

@wenfangdu
Copy link
Contributor Author

@bpasero Can you please try touch ./.git/git-rebase-todo, then the rest?

@bpasero
Copy link
Member

bpasero commented Jun 25, 2024

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author-verification-requested Issues potentially verifiable by issue author insiders-released Patch has been released in VS Code Insiders polish Cleanup and polish issue workbench-history History item issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants