-
Notifications
You must be signed in to change notification settings - Fork 280
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
formatting is blocked behind build? #1891
Comments
I think this is a sourcekit-lsp behaviour, transferring issue to that repo. |
Synced to Apple’s issue tracker as rdar://141559494 |
@ahoppen how should I go around debugging this? Any tips? |
What I would do is
There you should see a timeline of the requests and you can see which request might be blocking other requests. MessageHandlingDependencyTracker.swift is the relevant file that defines request/notification dependencies. I think the |
I seem to be unable to reproduce this on swift-6.1-DEVELOPMENT-SNAPSHOT-2024-12-21-a. |
@ahoppen perhaps we should have a label like "awaiting-release"? |
Describe the bug
I'm not sure if this sourcekit-lsp's doing or this extension's.
When I trigger a build, then immediately trigger a format, it appears that the document-format action always waits for the build to complete.
To Reproduce
Steps to reproduce the behavior:
Trigger a build.
Trigger "Format Document".
Expected behavior
Formatting should not be stuck behind a build.
Environment
Sourcekit-lsp settings:
"backgroundPreparationMode": "build",
might have a role in this beahvior?Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: