Skip to content

Feature request: Execute code in REPL terminal #4

@petersladek

Description

@petersladek

I think it makes a lot of sense to be able to execute code from scriptcs files in scriptcs REPL terminal window instead of using output window. Exactly the same as "F# interactive / FSI" works with fsharp ionide extension, or standalone CShell app. You write code in a file, hit alt+enter, and the code is executed in REPL. I really love the experience, because by writing code in files you have intellisense and all nice features you don't have in simple REPL shell.

I suggest a new configuration value should be added that indicates if you want to send code to output window or REPL terminal.

There are also other useful REPL related features in ionide extension that could be ported to scriptcs runner, like one click importing of all referenced nuget packages to REPL (VS2017 can do that too) etc.

EDIT: I realized this feature can be done also right now by using "Terminal: Run Selected Text In Active Terminal" but the experience is bad => you have to manually start the scriptcs in terminal (it should be started automatically like ionide does), and there is an annoying bug (VS Code or scriptcs REPL) that after every code sent to REPL there is "^J" added to REPL.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions