🐛 isolate git uri handling

fixes #23297
This commit is contained in:
Joao Moreno
2017-04-10 15:28:13 +02:00
parent 0a7bd0a19e
commit 564b9a8a1e
4 changed files with 42 additions and 30 deletions

View File

@@ -10,6 +10,7 @@ import { Model, State } from './model';
import { StatusBarCommands } from './statusbar';
import { CommandCenter } from './commands';
import { mapEvent } from './util';
import { toGitUri } from './uri';
import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
@@ -99,13 +100,7 @@ export class GitSCMProvider {
return;
}
// 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.fsPath,
path: uri.path + '.git'
});
return toGitUri(uri, '');
}
private onDidModelChange(): void {