Skip to content

VS Code provides odd hover expression to debug adapters if the expression has '.'s #4059

Closed

Description

This may well be by design, but if so I would suggest updating the documentation: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/debug/common/debugProtocol.d.ts#L475

When hoving over an identifier that doesn't start with a '.', the debug adapter just receives the identifier. This makes sense.
When hoving over an identifier that does start with a '.' the debug adapter seems to receive the full line of text.

I don't have a problem with making it the debug adapter's responsibility to find the start of the expression. But if I am reading this code code correctly, the UI seems to special case '.'. So I think we should either have the UI provide the debug adapter what it thinks is the right text (joining the dots together) or we should more fully move this responsibility to the debug adapter to handle more things (ex: '->' in C++).

Activity

  1. changed the title [-]VS Code provides odd hover expression if the expression has '.'s[/-] [+]VS Code provides odd hover expression to debug adapters if the expression has '.'s[/+] on Mar 12, 2016
  2. added
    debug
    on Mar 13, 2016
  3. added
    bug
    on Mar 13, 2016
  4. isidorn commented on Aug 26, 2016

    @isidorn

    Fixed by pr #9821

  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. added a commit that references this issue on Apr 12, 2024
    a5ccae2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions