🐛 use fsPath when getting paths out of URIs

fixes #23297
This commit is contained in:
Joao Moreno
2017-04-10 09:40:13 +02:00
parent 61753c0292
commit b8747ec0af
3 changed files with 13 additions and 6 deletions

View File

@@ -60,7 +60,11 @@ export class GitContentProvider {
this.cache[cacheKey] = cacheValue;
if (uri.scheme === 'git-original') {
uri = new Uri().with({ scheme: 'git', path: uri.query });
try {
return await this.model.show('', uri.query);
} catch (err) {
return '';
}
}
let ref = uri.query;
@@ -73,8 +77,7 @@ export class GitContentProvider {
}
try {
const result = await this.model.show(ref, uri);
return result;
return await this.model.show(ref, uri.fsPath);
} catch (err) {
return '';
}