Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt+Up and Alt+Down do not control history when interactive window launches pinned. #174

Open
JoeRobich opened this issue Jan 11, 2021 · 2 comments

Comments

@JoeRobich
Copy link
Member

JoeRobich commented Jan 11, 2021

Reported at developer community as https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1178927.

Workflow:

  1. Open VS and dock the C# interactive window to one of the edges.
  2. Pin the window so that it collapses to a tab on the edge.
  3. Close VS
  4. Open VS
  5. Show the C# interactive window by clicking the tab
  6. Execute var a = 5;
  7. Press Alt + Up

Expected Outcome:

The current line should match the previous entry and read var a = 5;

Actual Outcome:

No change to the current line. From debugging the CommandFilter, pguidCmdGroup is VsStd12 and the nCmdID is MoveSelLinesUp.

@JoeRobich
Copy link
Member Author

Focusing on a different ToolWindow or Editor then back to the Interactive Window corrects the commands being sent.

@JoeRobich
Copy link
Member Author

My current hunch on the issue seems to be that the CommandUIGuid on the WindowFrame is set to the Interactive Window's guid, but doesn't take effect until there is a Focus change (this is the hunch part). Since a pinned ToolWindow becomes created and focused when unpinned, there is no focus change that allows the CommandUIGuid to take precendence to the MoveSelectedLinesUp command when Alt+Up is pressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant