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

Feature Request: Variable preview should show extended variable, not buffer line #7

Open
yingzhu146 opened this issue Jun 9, 2021 · 1 comment

Comments

@yingzhu146
Copy link

Hi,

Thanks for this awesome plugin!

For variables, the preview is often to small. I'm less concerned about the position in the file (I often know that one), however container datastructures such as python dictionaries are most of the time way too large for the left hand pane. Thus I'd love to have the previewer show an unfolded representation of the variable.

If you don't have capacity, I could try to open a PR but would need a pointer as to how I could to return a serialized representation of the variables (I'm not entirely understanding how preview_fn could be used to just return a representation

@ToolmanP
Copy link

I guess we can leverage the tree_spec defined in dap.entity and eagerly fetch all the contents wrapped inside the variable and hook the response with the preview function to support this. I might file a PR for this later.

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

No branches or pull requests

2 participants