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

Go to next/previous breakpoint #35846

Closed

Conversation

beatriz
Copy link
Contributor

@beatriz beatriz commented Oct 8, 2017

Fixes #31806

To decide which breakpoint was next, I went to the next on the same file. If there were any until the end of the file, it goes to the next file alphabetically (by path). If you have a better way, I will change it.

I believe that there is much logic that is duplicated on both run() methods but I wasn't sure where it was appropriate to put a method to abstract that. If you can help me with that, I can make it better.

There is also some commented code for the keyboard shortcuts, I was wondering if you have an idea of which would be best for that.

@isidorn
Copy link
Contributor

isidorn commented Oct 10, 2017

@mbeatrizmagalhaes thank you for your PR, here's some feedback:

  • we try to keep code concise and minimize duplication. These two actions basically do the same thing, can you please try to minimize dupilcaiton by having common super class
  • there should be no default keybinding, so just delete that commented out code. Users can then assign any keybingind they want
  • please remove debugger statments
  • should this action go between files, or only in one file?
  • do not treat specailly the case if the breakpoint is in a different file or in the same file. Simply first find the appropriate breakpoints and just open it via editorService (will be less code and more straightforward)

Once you do that I can provide more feedback.
Thanks again for the PR however I am not supper pumped up about it since not a lot of users requisted this feature.

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Oct 25, 2017
@isidorn
Copy link
Contributor

isidorn commented Nov 27, 2017

Closing since my feedback was not addresed. If it gets addressed I will gleadly reopen

@isidorn isidorn closed this Nov 27, 2017
@CTimmerman
Copy link

CTimmerman commented Apr 18, 2018

Multiple file navigation is preferable, which also matches VS Code 1.22:
"With this release, navigating errors and warnings via F8 (Go to Next Problem) takes all reported errors into account. Instead of looping inside just one file, it will take you to the next file with errors and back."

How would I test this patch?

@isidorn
Copy link
Contributor

isidorn commented Apr 18, 2018

@CTimmerman I would recommend starting from scratch
https://github.com/Microsoft/vscode/wiki/How-to-Contribute

@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go to next/previous breakpoint
4 participants