Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Make comment blocks foldable

Open
#186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, rust
Domain
devtools

Research direction

Start by locating the folding-range implementation or entry point in anycode-rust and check how ranges are returned to VS Code. Verify support for rustdoc comments (/// and //!), non-doc // blocks, and /* */ blocks, with comment-kind ranges that work with editor.foldAllBlockComments; add or run the relevant folding tests if the project provides them.

Written by the indexing model from the issue text.

Description

This may be anycode-rust-specific, or it may apply to whole anycode (I don't know).

Unfortunately, anycode + anycode-rust doesn't work with VS Code built-in command "Fold All Block Comments" (editor.foldAllBlockComments). Based on AI, VS Code needs the ranges and they need to have kind set/returned as "comment".

In case you do implement this, in addition to rustdoc comments /// and //! please also support folding of non-doc comment blocks starting with //, and ones between /* and */.

Dominant language
JavaScript
Stars
387
Forks
47
Avg merge
20h 2m
Merged PRs (30d)
1

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-anycode

All issues in microsoft/vscode-anycode

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.