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

[RFC] Make all subcommands async #4176

Closed
wants to merge 1 commit into from

Conversation

bstaletic
Copy link
Collaborator

@bstaletic bstaletic commented Aug 26, 2023

PR Prelude

Thank you for working on YCM! :)

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your PR:

  • I have read and understood YCM's CONTRIBUTING document.
  • I have read and understood YCM's CODE_OF_CONDUCT document.
  • I have included tests for the changes in my PR. If not, I have included a
    rationale for why I haven't.
  • I understand my PR may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Why this change is necessary and useful

Fixes #4112


This change is Reviewable

@bstaletic bstaletic force-pushed the async-commands branch 4 times, most recently from f83bc36 to 6b8c800 Compare August 26, 2023 10:42
@codecov
Copy link

codecov bot commented Aug 26, 2023

Codecov Report

Merging #4176 (0a7c427) into master (4f1dcf4) will decrease coverage by 9.79%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4176      +/-   ##
==========================================
- Coverage   88.82%   79.04%   -9.79%     
==========================================
  Files          34       29       -5     
  Lines        4395     2730    -1665     
==========================================
- Hits         3904     2158    -1746     
- Misses        491      572      +81     

@bstaletic
Copy link
Collaborator Author

Gitter chat concluded that this should not be done as naively as in this pull request.

The problem is that this pull request provides no way of cancelling a request. In case of really slow ops, like GoToReferences with Jedi, a user may give up on the request and do something else. Then might get slapped in the face with a quickfix window. Worse, the slap could be a FixIt applied after entering insert mode and changing the text manually (missing semicolon comes to mind).

@bstaletic bstaletic closed this Aug 26, 2023
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.

[Feature request] Asynchronous GoToReferences
1 participant