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

DAP: add expensive field to scopes type. #1347

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

the-mikedavis
Copy link
Contributor

Description

There's a required expensive field on the Scope Type used
to hint to the client whether the variables in the given scope are
expensive to retrieve.

https://microsoft.github.io/debug-adapter-protocol/specification#Types_Scope

There's a required `expensive` field on the Scope Type used
to hint to the client whether the variables in the given scope are
expensive to retrieve.

https://microsoft.github.io/debug-adapter-protocol/specification#Types_Scope
@the-mikedavis
Copy link
Contributor Author

For a quick fix for clients that need this field we can just hard-code to false. I haven't read through the scopes part of the code yet (😅) - is it ever expensive on the server to fetch locals? Should we have some hueristic for setting this to true?

@robertoaloi
Copy link
Member

Nice catch. @TheGeorge do you have any opinions on this?

@robertoaloi robertoaloi merged commit a45c2e6 into erlang-ls:main Aug 1, 2022
@the-mikedavis the-mikedavis deleted the md-dap-expensive-scopes branch August 1, 2022 08:31
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.

2 participants