|
@ -163,12 +163,12 @@ export class GitExplorer implements TreeDataProvider { |
|
|
switch (this._view) { |
|
|
switch (this._view) { |
|
|
case GitExplorerView.History: { |
|
|
case GitExplorerView.History: { |
|
|
const promise = this.getHistoryNode(editor || window.activeTextEditor); |
|
|
const promise = this.getHistoryNode(editor || window.activeTextEditor); |
|
|
this._loading = promise.then(async _ => await Functions.wait(0)); |
|
|
|
|
|
|
|
|
this._loading = promise.then(_ => Functions.wait(0)); |
|
|
return promise; |
|
|
return promise; |
|
|
} |
|
|
} |
|
|
default: { |
|
|
default: { |
|
|
const promise = this.git.getRepositories(); |
|
|
const promise = this.git.getRepositories(); |
|
|
this._loading = promise.then(async _ => await Functions.wait(0)); |
|
|
|
|
|
|
|
|
this._loading = promise.then(_ => Functions.wait(0)); |
|
|
|
|
|
|
|
|
const repositories = [...await promise]; |
|
|
const repositories = [...await promise]; |
|
|
if (repositories.length === 0) return undefined; // new MessageNode('No repositories found');
|
|
|
if (repositories.length === 0) return undefined; // new MessageNode('No repositories found');
|
|
|