fix git commands

This commit is contained in:
Joao Moreno
2019-11-20 09:36:52 +01:00
parent 6df05c8553
commit e055299e77
3 changed files with 17 additions and 13 deletions

View File

@@ -11,6 +11,10 @@ export interface GitUriParams {
submoduleOf?: string;
}
export function isGitUri(uri: Uri): boolean {
return /^git(fs)?$/.test(uri.scheme);
}
export function fromGitUri(uri: Uri): GitUriParams {
return JSON.parse(uri.query);
}