uri module lowercases drive letters on Windows #40057
Labels
*as-designed
Described behavior is as designed
info-needed
Issue requires more information from poster
uri
Hello, we are using vscode-uri (https://github.com/Microsoft/vscode/blob/master/src/vs/base/common/uri.ts in this repo) to deal with URIs in https://github.com/flowtype/flow-language-server (a Language Server Protocol implementation for flow) and noticed an issue when converting fs paths to uri then back to fs path we lose drive letter casing, which then causes diagnostic not to show properly in atom.
Here's what happens:
C:\my\path
->file:///c/my/path
->c:\my\path
Looking at the code, this lowercasing is definitely intentional and was wondering why it was done, and if it would be possible not to do it since it would fix my use case. If there is a valid reason why it is done and could cause issues I can just fork it but wanted to ask here first :).
PS: The irony of posting a flow/atom issue in a ts/vscode repo 😆
The text was updated successfully, but these errors were encountered: