Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Conversation

KrzysztofSikoraCodete
Copy link
Contributor

@KrzysztofSikoraCodete KrzysztofSikoraCodete commented Apr 24, 2020

Suggestion to solve the problem

EDIT:
I tried to refer to the suggestion in #414

Sending an empty list by setBreakpont is not a good solution. We lose references when we want to change the breakpoint in the cell.

Every path (id) of breakpoints are actually a reference to the story of all breakpoints in focused, active cell.
What I did is showing the last element from history of them.

My solution would showing breakpoints from active cell. Additionally i have to do a trigger for active cell.

Focus event is not good idea, because doesn't work when user click on breakpoint gutter. However I'll check it.

Next, what i should do is clearing story after a certain number of queries, because all of them stay on memory.

Peek 2020-04-24 12-17

@jtpio
Copy link
Member

jtpio commented Apr 24, 2020

Thanks @KrzysztofSikoraCodete.

Are you referring to #414?

@KrzysztofSikoraCodete
Copy link
Contributor Author

@jtpio I've just edited description.

@@ -11,6 +11,18 @@ import { IDebugger } from '../tokens';
* A model for a list of breakpoints.
*/
export class BreakpointsModel implements IDisposable {
/**
* Get the last breakpoints from story
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does "story" here refer to the history of breakpoints?

Copy link
Contributor Author

@KrzysztofSikoraCodete KrzysztofSikoraCodete Apr 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactlly, id which is set here, i use to get current breakpoints from cell's story.

/>
))}
{breakpoints
.filter(find => find[0] === model.currentBreakpointsId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that we display the breakpoints for the currently selected cell only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or actually the last cell that was updated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still want to show the breakpoints for the other cells. To be able to select the cell where the breakpoint is defined when they are clicked.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peek 2020-04-24 13-01

How works now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When adding the breakpoint to the second cell the breakpoint list should show 3 breakpoints:

  • 2 for the first cell
  • 1 for the second cell

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll figure something out

@KrzysztofSikoraCodete KrzysztofSikoraCodete marked this pull request as draft May 6, 2020 11:57
@afshin
Copy link
Member

afshin commented Jun 11, 2020

Closed in favor of #454

@afshin afshin closed this Jun 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants