Skip to content

Commit

Permalink
fix: clarify of variableReference after setVariable (#492)
Browse files Browse the repository at this point in the history
Fixes #438
  • Loading branch information
connor4312 authored Aug 7, 2024
1 parent a8799ca commit e68f25a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debugAdapterProtocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@
},
"variablesReference": {
"type": "integer",
"description": "If `variablesReference` is > 0, the new value is structured and its children can be retrieved by passing `variablesReference` to the `variables` request as long as execution remains suspended. See 'Lifetime of Object References' in the Overview section for details."
"description": "If `variablesReference` is > 0, the new value is structured and its children can be retrieved by passing `variablesReference` to the `variables` request as long as execution remains suspended. See 'Lifetime of Object References' in the Overview section for details.\n\nIf this property is included in the response, any `variablesReference` previously associated with the updated variable, and those of its children, are no longer valid."
},
"namedVariables": {
"type": "integer",
Expand Down
4 changes: 4 additions & 0 deletions specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -2406,6 +2406,10 @@ interface SetVariableResponse extends Response {
* children can be retrieved by passing `variablesReference` to the
* `variables` request as long as execution remains suspended. See 'Lifetime
* of Object References' in the Overview section for details.
*
* If this property is included in the response, any `variablesReference`
* previously associated with the updated variable, and those of its
* children, are no longer valid.
*/
variablesReference?: number;

Expand Down

0 comments on commit e68f25a

Please sign in to comment.