Skip to content

VS Code should support span-based text markers #1959

@gregg-miskelly

Description

@gregg-miskelly

For .NET debugging, we have a number of spots where it can be confusing what the line-based text markers used by VS Code are actually pointing at. There are various language features in C# that commonly result either in multiple statements on a single line or in multi-line statements. Some of these such as setting a breakpoint inside of a lambda can be pretty confusing today because the editor markers (current statement, breakpoint bound) just show the line where things are happening instead of the text range. Thus there is no way to tell quite where you are stopped, or where the breakpoint is actually set.

I would suggest supporting both text markers that highlight an entire line, and text markers that highlight a text span ([begin-line,begin-col]->[end-line,end-col]).

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions