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

Register command to run code #37

Open
thatnerdjosh opened this issue Nov 15, 2020 · 8 comments
Open

Register command to run code #37

thatnerdjosh opened this issue Nov 15, 2020 · 8 comments

Comments

@thatnerdjosh
Copy link

Would it make sense for this extension to register a command to run code like the python extension (and some others) do?

Example:
https://github.com/neoclide/coc-python/blob/2d54b0074652e833f8f928d2265aa39dc4efe173/src/terminals/codeExecution/codeExecutionManager.ts#L33

If so, I can work on this and make a PR. I know it would be helpful for me although one could just :w !dotnet run —project <project> or something similar, I think it would be nice to have the integration built in

@yatli
Copy link
Member

yatli commented Nov 20, 2020

@thatnerdjosh
Copy link
Author

This is nice, how about C#? Thanks

@yatli
Copy link
Member

yatli commented Nov 20, 2020

If you could make a PR ;)

coc-utils has REPLProvider so all you need to do is to figure out how to configure the C# REPL

@yatli
Copy link
Member

yatli commented Nov 20, 2020

I searched around and it looks like there are a few options -- csi, scriptcs, dotnet-script, etc.

dotnet-script seems good: dotnet tool install -g dotnet-script

@thatnerdjosh
Copy link
Author

Ok sounds good :) just wanted to check if it was desired functionality

@Charly6596
Copy link

@yatli I think what they meant is to execute the project (dotnet run, dotnet watch run) using a command
I've been playing around with that taking some inspiration from coc-flutter and ended up with a working draft (still need to polish a few things)
image

@thatnerdjosh
Copy link
Author

@Charly6596 off topic but... what font is that :)

@Charly6596
Copy link

Charly6596 commented Mar 10, 2021

@Charly6596 off topic but... what font is that :)

SauceCodePro Nerd Font Mono

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

3 participants