Skip to content

Project outline should provide 'Sync with Active Document' #3593

Open
@thokra1

Description

@thokra1

Brief Issue Summary

Problem: Currently, switching active documents does not sync the project outline and there doesn't seem to be an option to enable such behavior or other means for the user to sync. The outline does not behave the same way the 'Explorer' and 'Open Editors' panels do.

  • Version tested: 1.86.1

The 'Explorer' and the 'Open Editors' panels sync the active document by default. The behavior is customizable via the "explorer.autoReveal" flag. In VS 2022, there are two options to make this happen in the solution explorer:

  • either by having the IDE track the active item

    • customizable via the options
    • image
  • by letting the user hit a button that does the sync

    • button is invisble if tracking is enabled
    • image

This functionality can be very helpful if one is working with multiple files from multiple different libraries and executables in larger projects. As a first step, reusing the "autoReveal" setting to enable this behavior would already go a long way. Ideally, the VS2022 approach would be the most user-friendly one.

The terminology for this functionality is inconsistent across tools and even within a single tool, like VS2022. At least the terms "track", "sync" and "reveal" are used to describe the same behavior, so sticking to the terminology used for the 'Explorer' (i.e. "reveal") would be consistent.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Project Outline Viewenhancementan enhancement to the product that is either not present or an improvement to an existing feature

    Type

    No type

    Projects

    Status

    Pending Prioritization

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions