提交 c9e07099 编写于 作者: J Joao Moreno

remove close repo command

上级 a7d50c00
......@@ -36,11 +36,6 @@
"dark": "resources/icons/dark/git.svg"
}
},
{
"command": "git.close",
"title": "%command.close%",
"category": "Git"
},
{
"command": "git.refresh",
"title": "%command.refresh%",
......@@ -559,11 +554,6 @@
"group": "5_stash",
"when": "config.git.enabled && scmProvider == git"
},
{
"command": "git.close",
"group": "6_misc",
"when": "config.git.enabled && scmProvider == git"
},
{
"command": "git.showOutput",
"group": "7_repository",
......
......@@ -330,11 +330,6 @@ export class CommandCenter {
await this.model.tryOpenRepository(path);
}
@command('git.close', { repository: true })
async closeRepository(repository: Repository): Promise<void> {
this.model.close(repository);
}
@command('git.openFile')
async openFile(arg?: Resource | Uri, ...resourceStates: SourceControlResourceState[]): Promise<void> {
const preserveFocus = arg instanceof Resource;
......
......@@ -177,16 +177,6 @@ export class Model {
this._onDidOpenRepository.fire(repository);
}
close(repository: Repository): void {
const openRepository = this.getOpenRepository(repository);
if (!openRepository) {
return;
}
openRepository.dispose();
}
async pickRepository(): Promise<Repository | undefined> {
if (this.openRepositories.length === 0) {
throw new Error(localize('no repositories', "There are no available repositories"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册