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

Launch interactive command and shortcut gone #255

Open
weitzhandler opened this issue Jan 15, 2025 · 1 comment
Open

Launch interactive command and shortcut gone #255

weitzhandler opened this issue Jan 15, 2025 · 1 comment

Comments

@weitzhandler
Copy link

C# interactive used to have a command assignable to keyboard shortcut to just open the window, regardless of current coding context (it’s a separate context anyway).
It's been over a year now that this command and shortcut has been missing. It was replaced by the InteractiveConsole.ExecuteInInteractive command which has several issues:

  • It assumes I want to copy-paste code from my current editor into console, when I merely want to open up the REPL to execute C# on the fly
  • In most scenarios, the current editor holds complex classes with dependeincies on packages etc. which in any case cannot be executed in the REPL.
  • When the REPL pane opens, if the mouse is not over it, it immediately hides. When opening the REPL, keyboard focus should be set to it.

My request is therefore:

  • Please add back a command to simply open the C# interactive windows, (like F# interactive's View.F#Interactive).
  • Make sure keyboard focus is set into the REPL once opened.

Posted here as well.

Related

@weitzhandler
Copy link
Author

FYI, when pressing Ctrl+Q to open the 'Feature Search' window, and searching 'interactive', the following results appear:

Image

It seems the command is Microsoft.VisualStudio.LanguageServices.CSharp.Interactive.OpenInteractiveWindowCommand, alas this command is not available in the list of all commands in the command bar / shortcut editor.

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