-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
lsp: Check for existing snapshots before sending off a didOpen notification #25409
Conversation
/cherry-pick v0.175.x |
…cation (#25409) Closes #ISSUE Release Notes: - Fixed Zed sending out didOpen notification to a language server when opening documents.
…cation (cherry-pick #25409) (#25411) Cherry-picked lsp: Check for existing snapshots before sending off a didOpen notification (#25409) Closes #ISSUE Release Notes: - Fixed Zed sending out didOpen notification to a language server when opening documents. Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
after this pr uno-language server starts to fails, as this name is undefined. |
@bajrangCoder Thanks for reaching out and diagnosing the issue; this is probably unrelated to this PR as this one doesn't mess with server initialization anyhow.
Besides, they're also accessing.. name of the workspace folder? Not even the URI, which is what we fill out (we leave the name empty). This means that you could probably unconditionally run |
Thanks for your help! Btw, I apologize for mistakenly disturbing the wrong PR. I also came across several strange issues in the server and also some missing stuffs, which is why I started implementing my own from scratch. However, due to my exams, the development is currently on hold, but I plan to resume it once they are over. Actually, a user reported an issue on zed-unocss, mentioning that the extension fails to start the LSP server on Zed 0.175.3 Preview. That’s why I thought something might have changed in Zed. |
Don't worry, it's okay to ping as long as it's at least somewhat related. :) And yeah, Zed changes broke it, but I'd say that the changes we made are reasonable and the language server for unocss is the odd one out. |
Oh, sorry, my wording was a bit imprecise:
It should've said Honestly your PR looks good to me. It'll make unocss work just as well as prior to #24038. #24038 is really about improving language server support in large projects, e.g. monorepos. |
Closes #ISSUE
Release Notes: