Skip to content

Commit

Permalink
feat: add returnValue as a Scope.presentationHint (#484)
Browse files Browse the repository at this point in the history
Closes #458
  • Loading branch information
connor4312 authored Jun 28, 2024
1 parent 8d08dd8 commit 4d425df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sectionid: changelog

* 1.67.x
* Add `line`, `column`, and `source` location attributions to `EvaluateArguments`
* Add `returnValue` as a well-known `Scope.presentationHint`

* 1.66.x
* Add `bytes` and `asAddress` properties to the `DataBreakpointInfo` request
Expand Down
5 changes: 3 additions & 2 deletions debugAdapterProtocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -3545,11 +3545,12 @@
"presentationHint": {
"type": "string",
"description": "A hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI.",
"_enum": [ "arguments", "locals", "registers" ],
"_enum": [ "arguments", "locals", "registers", "returnValue" ],
"enumDescriptions": [
"Scope contains method arguments.",
"Scope contains local variables.",
"Scope contains registers. Only a single `registers` scope should be returned from a `scopes` request."
"Scope contains registers. Only a single `registers` scope should be returned from a `scopes` request.",
"Scope contains a return value. A scope of this kind should have a single child variable."
]
},
"variablesReference": {
Expand Down
4 changes: 3 additions & 1 deletion specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -3923,9 +3923,11 @@ interface Scope {
* 'locals': Scope contains local variables.
* 'registers': Scope contains registers. Only a single `registers` scope
* should be returned from a `scopes` request.
* 'returnValue': Scope contains a return value. A scope of this kind should
* have a single child variable.
* etc.
*/
presentationHint?: 'arguments' | 'locals' | 'registers' | string;
presentationHint?: 'arguments' | 'locals' | 'registers' | 'returnValue' | string;

/**
* The variables of this scope can be retrieved by passing the value of
Expand Down

0 comments on commit 4d425df

Please sign in to comment.