🐛 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

@@ -101,7 +101,11 @@ export class GitSCMProvider {
// As a mitigation for extensions like ESLint showing warnings and errors
// for git URIs, let's change the file extension of these uris to .git.
return new Uri().with({ scheme: 'git-original', query: uri.path, path: uri.path + '.git' });
return new Uri().with({
scheme: 'git-original',
query: uri.fsPath,
path: uri.path + '.git'
});
}
private onDidModelChange(): void {