This commit is contained in:
João Moreno
2020-04-09 15:22:22 +02:00
parent 83af777292
commit 8ceb90a807
6 changed files with 19 additions and 17 deletions

View File

@@ -290,7 +290,7 @@ export class CommandCenter {
}
@command('git.openResource')
async openResource(resource: Resource): Promise<void> {
async openResource(resource: Resource, preserveFocus: boolean): Promise<void> {
const repository = this.model.getRepository(resource.resourceUri);
if (!repository) {
@@ -301,7 +301,7 @@ export class CommandCenter {
const openDiffOnClick = config.get<boolean>('openDiffOnClick');
if (openDiffOnClick) {
await this._openResource(resource, undefined, true, false);
await this._openResource(resource, undefined, preserveFocus, false);
} else {
await this.openFile(resource);
}