mirror of https://github.com/AMT-Cheif/drift.git
Consistently normalize URLs in CLI tool
This commit is contained in:
parent
92dd82f49c
commit
fb0533c204
|
@ -19,7 +19,12 @@ class PhysicalDriftDriver {
|
|||
|
||||
PhysicalDriftDriver(this.driver, this._backend);
|
||||
|
||||
Uri uriFromPath(String path) => _backend.provider.pathContext.toUri(path);
|
||||
Uri uriFromPath(String path) {
|
||||
final pathUri = _backend.provider.pathContext.toUri(path);
|
||||
|
||||
// Normalize to package URI if necessary.
|
||||
return _backend.resolveUri(pathUri, '');
|
||||
}
|
||||
|
||||
Future<FileState> analyzeElementsForPath(String path) {
|
||||
return driver.resolveElements(uriFromPath(path));
|
||||
|
|
Loading…
Reference in New Issue