microsoft / microsoft/vscode-anycode

Make comment blocks foldable

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

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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.