denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
146 stars 45 forks source link

fix(diagnostics): add windows fallback code to display unix paths #209

Closed dsherret closed 7 months ago

dsherret commented 7 months ago

Some tests in deno_doc failed on the CI because on Windows, unix paths used in the tests like file:///mod.ts would stay as a file specifier instead of being converted to a path. This makes it work the same way on all platforms.

dsherret commented 7 months ago

@mmastrac yeah it's taken from the CLI's deno::util::path module. It would be nice if we could put it somewhere common.