accordproject / ergo-vscode-plugin

(Obsolete) Replaced by https://github.com/accordproject/cicero-vscode-extension
MIT License
2 stars 1 forks source link

Fix Windows parsing of document uri #17

Closed mttrbrts closed 5 years ago

mttrbrts commented 5 years ago

Fixes #16

The VSCode TextDocument.uri is a uri with a file scheme, i.e. file:///home/matt/logic.ergo. Previously the code for extracting the parent directory of the logic.ergo file failed on Windows which caused the compilation errors that were seen in #16 because no model files were provided to the parser.

This patch adds more robust handling for uris that is platform independent.