Skip to content

Path returned to LSP client with encoded / char #990

Open
@rkeithhill

Description

@rkeithhill

Windows 10 1903 - VSCode Insiders 1.36.0 - PowerShell Preview 2019.5.0

While working on the posh-git project I got an error that VSCode couldn't find a file with the path src%2FConsoleMode.ps1. Sure enough the log indicates that it is getting returned by publishDiagnostics with this / char encoded:

2019-07-01 22:11:09.962 [VERBOSE] tid:20 in 'WriteMessageAsync' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs: line 88
    Writing Event 'textDocument/publishDiagnostics'
    
    {
      "jsonrpc": "2.0",
      "method": "textDocument/publishDiagnostics",
      "params": {
        "uri": "file:///c%3A/Users/Keith/GitHub/dahlbyk/posh-git/src%2FPoshGitTypes.ps1",
        "diagnostics": []
      }
    }

Hopefully this is an easy fix.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions