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

making hls-cabal and hls-hlint faster #4332

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

komikat
Copy link

@komikat komikat commented Jun 21, 2024

expectNoMoreDiagnostics 1 waits for 1 second to establish that no diagnostics have been created, it has been replaced with waitForTypecheck and waitForAction "gethieast" for Haskell and cabal files respectively, shaving off 1 second each time. I'm not sure if I should wait for some other action for cabal files.

@komikat komikat requested a review from fendor as a code owner June 21, 2024 16:31
@soulomoon
Copy link
Collaborator

soulomoon commented Jun 21, 2024

you might also need to consider the debouncer delay

But in fact if you want to reliably replace it. You might need to consider a lot of internal working in hls. See #4300

@komikat
Copy link
Author

komikat commented Jun 21, 2024

looking into it, thanks!

@komikat komikat marked this pull request as draft June 23, 2024 16:59
@komikat komikat changed the title replace expectNoMoreDiagnostics with waitForAction's, saving 1s making hls-cabal and hls-hlint faster Jun 23, 2024
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.

None yet

2 participants