提交 d3b46d02 编写于 作者: I isidor

polish

上级 5feadf1f
......@@ -593,7 +593,11 @@ function getCommandsContext(resourceOrContext: URI | IEditorCommandsContext, con
return resourceOrContext;
}
return context && 'groupId' in context ? context : void 0;
if (context && typeof context.groupId === 'number') {
return context;
}
return void 0;
}
function resolveCommandsContext(editorGroupService: IEditorGroupsService, context?: IEditorCommandsContext): { group: IEditorGroup, editor: IEditorInput, control: IEditor } {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册