提交 9208c4b4 编写于 作者: J Joao Moreno

🐛 fixes #24646

上级 83d86b36
......@@ -244,6 +244,11 @@ export class CommandCenter {
@command('git.openFile')
async openFile(resource?: Resource): Promise<void> {
if (!(resource instanceof Resource)) {
// can happen when called from a keybinding
resource = this.getSCMResource();
}
if (!resource) {
return;
}
......@@ -253,6 +258,11 @@ export class CommandCenter {
@command('git.openChange')
async openChange(resource?: Resource): Promise<void> {
if (!(resource instanceof Resource)) {
// can happen when called from a keybinding
resource = this.getSCMResource();
}
if (!resource) {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册