microsoft / microsoft/VSExtensibility

Feature request: Text Editor: Collapse/Expand ranges

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

Nobody has claimed this yet.

Dominant language
C#
Stars
440
Forks
63
Avg merge
2d 12h
Merged PRs (30d)
1

Description

Is there any way to respond to collapsing/expanding ranges in the textview?

In the old model I was able to do this using the IOutliningManagerService...

I am working on rewriting my CodeNav extension which displays a toolwindow similar to document outline, but way better ;)

The list of syntax nodes should respond to users collapsing and expanding classes and regions for example.

The other way should also work collapsing a namespace in the CodeNav list should collapse the same namespace in the textview.

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 investigating the textview outlining extensibility and the referenced IOutliningManagerService. Determine how CodeNav can observe collapsing and expanding classes or regions, and how its list could request matching changes in the textview. Done means both directions are supported for the requested ranges.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.