提交 f47ffed3 编写于 作者: I isidor

return passed context if resourceOrContext is not useful

上级 5be33cb0
......@@ -593,7 +593,7 @@ function getCommandsContext(resourceOrContext: URI | IEditorCommandsContext, con
return resourceOrContext;
}
return void 0;
return context;
}
function resolveCommandsContext(editorGroupService: IEditorGroupsService, context?: IEditorCommandsContext): { group: IEditorGroup, editor: IEditorInput, control: IEditor } {
......@@ -667,4 +667,4 @@ export function setup(): void {
registerCloseEditorCommands();
registerFocusEditorGroupAtIndexCommands();
registerSplitEditorCommands();
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册