Skip to content

Expose API for highlighting a portion of the document (as used in document symbol list) #45059

Closed

Description

@DanTup

There's a request that I believe was for this at #540 however it's closed as done, but I think only one part of it was done.

When using the document symbol provider, moving through the items with the cursor keys "highlights" the range of that symbol in the editor in the background. I cannot find an API that allows me to provide this sort of highlight myself (outside of the symbol provider).

I have an explorer tree view which is a sort of outline of the code, and as the user moves around it I'd like to highlight the code (I've tried using reveal but since it doesn't highlight, it's a bit confusing to the user as the code moves but it's not clear where on the screen the relevant item is).

Activity

  1. vscode-triage-bot commented on Oct 6, 2020

    @vscode-triage-bot

    We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding and happy coding!

  2. jrieken commented on Oct 6, 2020

    @jrieken
    Contributor

    This can be achieved with editor decorations and theme colors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*out-of-scopePosted issue is not in scope of VS Codeapifeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions