Skip to content

Conversation

@catgoose
Copy link
Contributor

Fixes issue where when using DapViewWatch if repl is active the Watcher view does not get filled with watcher expressions

Copy link
Owner

@igorlfs igorlfs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! Left a comment, LMK what you think

@catgoose catgoose requested a review from igorlfs January 26, 2025 03:53
require("dap-view.views").switch(function()
require("dap-view.breakpoints.view").show()
end)
require("dap-view.views").switch(require("dap-view.breakpoints.view").show)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@igorlfs igorlfs merged commit b94ed42 into igorlfs:main Jan 26, 2025
igorlfs pushed a commit that referenced this pull request Jan 29, 2025
* fix: when using DapViewWatch on current position with repl showing, switch to Watcher view

* ref: use nvim_set_current_buf to set buffer for winnr

* ref(watcher): when adding watcher expression check if window is valid before switching view

* ref: add window id checks when switching views

* ref: removes redundant function wraps for callback argument
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