Skip to content

Add stepping granularities to the step requests. - #112

Merged
Andre Weinand (weinand) merged 3 commits into
microsoft:gh-pagesfrom
auott:steppingGranularity
May 14, 2020
Merged

Andre Weinand (weinand) merged 3 commits into
microsoft:gh-pagesfrom
auott:steppingGranularity

Conversation

@auott

Copy link
Copy Markdown
Member

This allows step requests (Next, StepInto, StepOut, StepBack) to take
an optional 'steppingGranularity', which provides a hint for how far
a debug adapter should let the step go.

This provides support for proposal #110

This allows step requests (Next, StepInto, StepOut, StepBack) to take
an optional 'steppingGranularity', which provides a hint for how far
a debug adapter should let the step go.
@auott

Copy link
Copy Markdown
Member Author

Andre Weinand (@weinand) - PR for stepping granularities proposal.

@weinand Andre Weinand (weinand) added this to the May 2020 milestone May 13, 2020

@weinand Andre Weinand (weinand) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall looks good to me.
Having descriptions on the 3 stepping values would be nice.

Comment thread debugAdapterProtocol.json Outdated
"SteppingGranularity": {
"type": "string",
"description": "The granularity of the requested step.",
"enum": [ "statement", "line", "instruction" ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add descriptions for the individual values (by means of an "enumDescriptions" array).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added.

I noticed that the comments weren't getting added to specification.md so I also went ahead and updated the generator to add comments for standalone enum definitions. It added comments on a couple of other places as well. I can also revert those changes if you'd prefer to leave it as is for now (or to handle it separately).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reverted for now - was not quite as simple as I initially thought.

The generator also was not adding comments for standalone enum
definitions, so this updates the generator to comment these as well.
Comment thread specification.md Resolved
Comment thread specification.md Resolved
@weinand
Andre Weinand (weinand) merged commit ff0bbe5 into microsoft:gh-pages May 14, 2020
@weinand

Copy link
Copy Markdown
Contributor

Austen Ott (@auott) thanks a lot for the PR.
I did minor edits on some comments and added a section to the changelog.
The "enumDescriptions" do not yet show up in the generated markdown (but they do show up in the generated TypeScript).
I will take care of updating the markdown generator...

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

Successfully merging this pull request may close these issues.

3 participants