Adds fromFileStatus to GitUri

This commit is contained in:
Eric Amodio
2017-03-30 00:56:48 -04:00
parent aff8aff011
commit 276c24ac24
4 changed files with 14 additions and 7 deletions

View File

@@ -5,7 +5,6 @@ import { ActiveEditorCommand, Commands } from './common';
import { TextEditorComparer, UriComparer } from '../comparers';
import { GitService } from '../gitService';
import { Logger } from '../logger';
import * as path from 'path';
export class CloseUnchangedFilesCommand extends ActiveEditorCommand {
@@ -26,7 +25,7 @@ export class CloseUnchangedFilesCommand extends ActiveEditorCommand {
const status = await this.git.getStatusForRepo(repoPath);
if (!status) return window.showWarningMessage(`Unable to close unchanged files`);
uris = status.files.map(_ => Uri.file(path.resolve(repoPath, _.fileName)));
uris = status.files.map(_ => _.Uri);
}
const editorTracker = new ActiveEditorTracker();