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

With preview, a supplied expression is not passed to the refresh #1163

Open
torypages opened this issue Feb 20, 2024 · 1 comment
Open

With preview, a supplied expression is not passed to the refresh #1163

torypages opened this issue Feb 20, 2024 · 1 comment

Comments

@torypages
Copy link

Debug adapter definition and debug configuration

No response

Debug adapter version

9adbfdc

Steps to Reproduce

run something like :lua require('dap.ui.widgets').preview("word", {listener={'event_continued'}}) where you supply an expression, in this case, word and a listener.

Expected Result

I expect that my supplied expression would be evaluated when the listeners are triggered.

Actual Result

When the trigger runs, vim.fn.expand('<cexpr>') seems to be evaluated.

@torypages
Copy link
Author

In the preview function adding view.__expression = value in between these two lines "fixes" it.

I suppose maybe we need a way to pass additional arguments to the render inside the refresh here

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

1 participant