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

Support to collapse or fold annotate comments in VSCode #1027

Open
mediafinger opened this issue Aug 12, 2024 · 1 comment
Open

Support to collapse or fold annotate comments in VSCode #1027

mediafinger opened this issue Aug 12, 2024 · 1 comment

Comments

@mediafinger
Copy link

My colleague likes the annotations, I've read they help AI tools, but I'm happy with opening db/schema.rb when I need this information and consider the comments - and all the diffs in the PRs - rather as noise.

So I wonder if you know any existing way to automatically fold the annotate comment when using VSCode?

If not, would it be possible to add a setting, that would add a (configurable) first and last line? There are VSCode extensions that can automatically fold code "regions", when opening a file.

For this a first comment line had to be added in the form of:

# #region Annotate

and a last line with the content:

# #endregion

which would allow the extensions to identify the whole comment and collapse it automagically when opening a file.

Version

  • annotate 3.2.0
  • rails 7.2.0
  • ruby 3.3.4
@mediafinger mediafinger changed the title Support to hide or fold annotate comment in VSCode Support to collapse or fold annotate comment in VSCode Aug 12, 2024
@mediafinger mediafinger changed the title Support to collapse or fold annotate comment in VSCode Support to collapse or fold annotate comments in VSCode Aug 12, 2024
@drwl
Copy link
Collaborator

drwl commented Aug 15, 2024

Perhaps the --wo, --wrapper-open STR and --wc, --wrapper-close STR might be usable here?

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

2 participants