Adds openChangedFileChanges to custom view

Adds openChangedFileChangesWithWorking to custom view
Removes unneeded context checks from custom view commands
This commit is contained in:
Eric Amodio
2017-09-12 11:11:03 -04:00
parent 503b2a3785
commit 77482f4930
6 changed files with 153 additions and 86 deletions

View File

@@ -358,7 +358,8 @@ export class Git {
return await gitCommand(opts, 'show', args);
}
catch (ex) {
if (/Path \'.*?\' does not exist in/.test(ex && ex.toString())) {
const msg = ex && ex.toString();
if (/Path \'.*?\' does not exist in/.test(msg) || /Path \'.*?\' exists on disk, but not in /.test(msg)) {
return undefined;
}