Skip to content

workspace.openTextDocument throws an error on Windows when passing a uri #131925

@nturinski

Description

@nturinski

Does this issue occur when all extensions are disabled?: Yes

Version: 1.60.0-insider (system setup)
Commit: e4ac631
Date: 2021-08-25T09:43:28.935Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042

Steps to Reproduce:

  1. Call await workspace.openTextDocument(uri: vscode.Uri)
  2. VS Code throws a path parsing error:
cannot open c:%5CUsers%5CNathan%5CDesktop%5CCode%5Cswa%5CReactSite%5C.github%5Cworkflows%5Cazure-static-web-apps-agreeable-smoke-05ef57810.yml. Detail: Unable to resolve resource c:%5CUsers%5CNathan%5CDesktop%5CCode%5Cswa%5CReactSite%5C.github%5Cworkflows%5Cazure-static-web-apps-agreeable-smoke-05ef57810.yml
  1. Doesn't repro on Mac or Linux. Resolved if we pass uri.fsPath to openTextDocument instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions