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

Add "Run" lens for binary runnables #1536

Merged
merged 1 commit into from Jul 16, 2019

Conversation

@SomeoneToIgnore
Copy link
Contributor

commented Jul 16, 2019

Add an easy way to launch the different main methods from VS Code:

Before:
image

After:
image

I've decided to omit the ️▶️ symbol (as done for benches) since it looks a bit weird to me, but here's the version with it, just to compare:
image

@matklad

This comment has been minimized.

Copy link
Collaborator

commented Jul 16, 2019

bors r+

Btw, this is also available via a shortcut

bors bot added a commit that referenced this pull request Jul 16, 2019

Merge #1536
1536: Add "Run" lens for binary runnables r=matklad a=SomeoneToIgnore

Add an easy way to launch the different `main` methods from VS Code:

Before:
![image](https://user-images.githubusercontent.com/2690773/61294531-b0111a80-a7de-11e9-856a-eedce52f883f.png)

After:
![image](https://user-images.githubusercontent.com/2690773/61294556-bef7cd00-a7de-11e9-9fbd-cb5076e0b1b6.png)

I've decided to omit the ️`▶️` symbol (as done for benches) since it looks a bit weird to me, but here's the version with it, just to compare:
![image](https://user-images.githubusercontent.com/2690773/61294597-dafb6e80-a7de-11e9-8f08-b513b8902ef5.png)




Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
@SomeoneToIgnore

This comment has been minimized.

Copy link
Contributor Author

commented Jul 16, 2019

Which one?
I've tried ctrl + r, but it does not give anything special:
image

No luck when I search for run or execute words via Cmd + Shift + P dialogue.

@bors

This comment has been minimized.

Copy link
Contributor

commented Jul 16, 2019

@bors bors bot merged commit 1037242 into rust-analyzer:master Jul 16, 2019

2 checks passed

bors Build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@SomeoneToIgnore SomeoneToIgnore deleted the SomeoneToIgnore:add_binary_runnable_lens branch Jul 16, 2019

@matklad

This comment has been minimized.

Copy link
Collaborator

commented Jul 16, 2019

It’s ctrl+r. The cursor should be on main for it to show “run main”

@SomeoneToIgnore

This comment has been minimized.

Copy link
Contributor Author

commented Jul 16, 2019

Worked indeed, thanks for the tip.

Just a side note: by default, VS Code already uses ctrl + r for opening the recent project, so this shortcut clashes with it.
But you know that most probably :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.