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

[frature] expose api to run single file or project #20843

Closed
leaxoy opened this issue Feb 18, 2017 · 5 comments
Closed

[frature] expose api to run single file or project #20843

leaxoy opened this issue Feb 18, 2017 · 5 comments
Assignees
Labels
*extension-candidate Issue identified as good extension implementation

Comments

@leaxoy
Copy link

leaxoy commented Feb 18, 2017

  • VSCode Version: Code - Insiders 1.10.0-insider (50f8848, 2017-02-17T13:43:37.461Z)
  • OS Version: Darwin x64 16.5.0

Now vscode can easily debug project, or single file(with extension support), but for a single file or project, there looks no way to run it. In sometimes run is more useful than debug.
A suggestion, expose CMD+r to run a single file use language default build tool, for python , user can set use python2 or python3 and add some command line variables through config file, for go, default use go run ${currentFile} also with more command line variables defined in config file.

@leaxoy leaxoy changed the title [frature] expose api to run single file [frature] expose api to run single file or project Feb 18, 2017
@rozzzly
Copy link

rozzzly commented Feb 20, 2017

Checkout my extension, vscode-prompt-debug. I made it for debug sessions, but it should work for normal run configurations as well (currently untested; afk at the moment. Let me know if you try and it works/doesn't)

You should just be able to include ${command.prompt-debug.resolve} in your launch configuration.

example

@isidorn
Copy link
Contributor

isidorn commented Feb 21, 2017

Yes this can be achieved by extensions as @rozzzly points out.

The api is already available, more about that can be found here #285 and #6248

@isidorn isidorn closed this as completed Feb 21, 2017
@isidorn isidorn added the *extension-candidate Issue identified as good extension implementation label Feb 21, 2017
@leaxoy
Copy link
Author

leaxoy commented Feb 21, 2017

It's run single file or project, not debug.
With debug, I should set bp in some lines, but with run, we can run it and see result immediately without debug steps.

@isidorn
Copy link
Contributor

isidorn commented Feb 21, 2017

It is still possible via an extension more details #2780
In short 'noDebug': true should just be added to the launch configuration

@rozzzly
Copy link

rozzzly commented Feb 21, 2017

@leaxoy

I made it for debug sessions, but it should work for normal run configurations as well

You should just be able to include ${command.prompt-debug.resolve} in your launch configuration.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation
Projects
None yet
Development

No branches or pull requests

3 participants