Skip to content

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

@DanTup

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).

Metadata

Metadata

Assignees

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