juliosueiras / terraform-lsp

Language Server Protocol for Terraform
MIT License
579 stars 37 forks source link

Fix scheme stripping of file URI #61

Closed AubreySLavigne closed 4 years ago

AubreySLavigne commented 4 years ago

This is in response to issue at: https://github.com/juliosueiras/terraform-lsp/issues/50

A panic would be raised on Windows computers, where removing the file:// scheme would still have an invalid leading slash (e.g. '/C:/Users/...').

Fixes juliosueiras/terraform-lsp#50

juliosueiras commented 4 years ago

Thanks =) , didn't know there is a lib for doing the logic decode of file url to proper file path, since it was given me a lot of issues, also tested on windows and it work great