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

debug: make rpc commands async so Vim will be responsive while waiting for delve response #2948

Merged
merged 2 commits into from
Jul 4, 2020

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Jul 4, 2020

promise: teach promises to handle exceptions
debug: refactor to make rpc response handling async

Refactor debugger rpc response handling of execution commands (e.g.
continue, next, step) to be async by default. By using promises, some
other rpc reponse are awaited inline.

Add only GoDebugContinue and GoDebugStop after GoDebugStart or
GoDebugTest. The rest of the commands, (e.g. GoDebugNext, GoDebugStep,
etc.) are added after continuing.

@MatthewMarkgraaff this should resolve the responsiveness issue you mentioned in #2915.

Refactor debugger rpc response handling of execution commands (e.g.
continue, next, step) to be async by default.  By using promises, some
other rpc reponse are awaited inline.

Add only GoDebugContinue and GoDebugStop after GoDebugStart or
GoDebugTest. The rest of the commands, (e.g. GoDebugNext, GoDebugStep,
etc.) are added after continuing.
@bhcleek bhcleek added this to the vim-go 1.24 milestone Jul 4, 2020
@bhcleek bhcleek changed the title debug: make rpcs commands async so Vim will be responsive while waiting for delve response. debug: make rpc commands async so Vim will be responsive while waiting for delve response Jul 4, 2020
@bhcleek bhcleek merged commit aaf5969 into fatih:master Jul 4, 2020
@bhcleek bhcleek deleted the debug/responsive branch July 4, 2020 17:00
bhcleek added a commit that referenced this pull request Jul 4, 2020
bhcleek added a commit to bhcleek/vim-go that referenced this pull request Jul 6, 2020
Update documentation to reflect changes made in fatih#2948 that changed when
debugging commands and mappings are made available.
bhcleek added a commit to bhcleek/vim-go that referenced this pull request Jul 6, 2020
Update documentation to reflect changes made in fatih#2948 that changed when
debugging commands and mappings are made available.
bhcleek added a commit that referenced this pull request Jul 6, 2020
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.

1 participant