Skip to content

How to handle setBreakpoints path 'git:/...'? #74853

@rjmholt

Description

@rjmholt

From PowerShell/vscode-powershell#1994.

  • VSCode Version: 1.34.0 a622c65 x64
  • OS Version: Windows 10 1809

VSCode sends a setBreakpoints request from a OneDrive path like this:

2019-05-30 17:07:14.812 [VERBOSE] tid:5 in 'ReadMessage' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs: line 138
    Received Request 'setBreakpoints' with id 3
    
    {
      "command": "setBreakpoints",
      "arguments": {
        "source": {
          "name": "OneNote.ps1",
          "path": "git:/c%3A/Users/mcp/OneDrive/WindowsPowerShell/Modules/MsftGraph/OneNote.ps1?%7B%22path%22%3A%22c%3A%5C%5CUsers%5C%5Cmcp%5C%5COneDrive%5C%5CWindowsPowerShell%5C%5CModules%5C%5CMsftGraph%5C%5COneNote.ps1%22%2C%22ref%22%3A%22~%22%7D"
        },
        "lines": [
          338
        ],
        "breakpoints": [
          {
            "line": 338
          }
        ],
        "sourceModified": false
      },
      "type": "request",
      "seq": 3
    }

The PowerShell extension currently handles file:// and untitled:// schemes for this, but I haven't seen git:/ before.

I haven't been able to find any documentation on this behaviour (in issues or in VSCode docs) and my StackOverflow question hasn't gotten much attention.

Only one user has reported this, so it doesn't feel like a common feature we've missed.

My questions are:

  • What does this path scheme mean?
  • Does it make sense as a setBreakpoints request path?
  • How should we be handling it?

Metadata

Metadata

Labels

debugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions