Fix 2349 - Bug with file history for file outside of the solution

https://github.com/gitextensions/gitextensions/issues/2349

Created a separate set of commands to handle the case when command was triggered by clicking on the tab    or code window