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

fix: use buffer number instead of a boolean to limit on_attach calls #218

Merged
merged 3 commits into from
Jan 13, 2024
Merged

fix: use buffer number instead of a boolean to limit on_attach calls #218

merged 3 commits into from
Jan 13, 2024

Conversation

JeremyChuaWX
Copy link
Contributor

as mentioned in the comments of PR #213, the use of a boolean prevents on_attach from being called when a new buffer is opened. I tried implementing the same idea of limiting the on_attach calls but with buffer number instead.

@JeremyChuaWX JeremyChuaWX changed the title fix: use buffer number instead of a boolean fix: use buffer number instead of a boolean to limit on_attach calls Jan 13, 2024
@pmizio
Copy link
Owner

pmizio commented Jan 13, 2024

Thanks merging for now I looked for easy fix but we see it is more complicated. Next few days I try to propose new solution which should resolve this on tsserver response level.

@pmizio pmizio merged commit 54224a2 into pmizio:master Jan 13, 2024
33 checks passed
pmizio added a commit that referenced this pull request Jan 13, 2024
pmizio added a commit that referenced this pull request Jan 14, 2024
…er` (#220)

* Revert "fix: use buffer number instead of a boolean to limit on_attach calls (#218)"

This reverts commit 54224a2.

* Revert "fix: `on_attach` called multiple times with `separate_diagnostic_server` (#213)"

This reverts commit df64c37.

* fix: `on_attach` called multiple times with `separate_diagnostic_server`
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.

3 participants