microsoft / microsoft/vscode-anycode
Make comment blocks foldable
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 387
- Forks
- 47
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
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 */.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- javascript, rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100