Fixes #59 - Updates command context to opened file state

Removes insiders restriction from Open in Remote commands
This commit is contained in:
Eric Amodio
2017-04-08 15:07:22 -04:00
parent b70ffbdeee
commit 7cb1b9d0f1
9 changed files with 244 additions and 216 deletions

View File

@@ -235,6 +235,15 @@ export class Git {
return gitCommand(root, ...params);
}
static async ls_files(repoPath: string, fileName: string): Promise<string> {
try {
return await gitCommand(repoPath, 'ls-files', fileName);
}
catch (ex) {
return '';
}
}
static remote(repoPath: string): Promise<string> {
return gitCommand(repoPath, 'remote', '-v');
}