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

Update the server with current file state after a restart #1730

Merged
merged 1 commit into from Feb 15, 2024

Conversation

bstaletic
Copy link
Collaborator

@bstaletic bstaletic commented Jan 21, 2024

Previously, ycmd would not update the LSP server with the current file state after RestartServer subcommand had been issued. This causes some stale diagnostics to linger.


This change is Reviewable

@bstaletic bstaletic force-pushed the update-files-after-server-reset branch from dff1406 to b3f8424 Compare January 21, 2024 11:04
@bstaletic
Copy link
Collaborator Author

Should be ready now.

Copy link

codecov bot commented Jan 21, 2024

Codecov Report

Merging #1730 (84ee7c3) into master (9d3a703) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1730   +/-   ##
=======================================
  Coverage   95.44%   95.44%           
=======================================
  Files          83       83           
  Lines        8167     8168    +1     
  Branches      163      163           
=======================================
+ Hits         7795     7796    +1     
  Misses        322      322           
  Partials       50       50           

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

thanks

Reviewable status: 1 of 2 LGTMs obtained

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @bstaletic)

@bstaletic bstaletic force-pushed the update-files-after-server-reset branch from b3f8424 to 84ee7c3 Compare February 14, 2024 21:02
Previously, ycmd would not update the LSP server with the current file
state after RestartServer subcommand had been issued. This causes some
stale diagnostics to linger.
@bstaletic bstaletic added the Ship It! Manual override to merge a PR by maintainer label Feb 15, 2024
Copy link
Contributor

mergify bot commented Feb 15, 2024

Thanks for sending a PR!

@mergify mergify bot merged commit f11e293 into ycm-core:master Feb 15, 2024
17 of 18 checks passed
@bstaletic bstaletic deleted the update-files-after-server-reset branch February 15, 2024 03:11
bstaletic added a commit to ycm-core/YouCompleteMe that referenced this pull request Feb 18, 2024
Changes since the last update:

ycm-core/ycmd#1728 YcmShowDetailedDiagnostic should now match what is echoed on the command line.
ycm-core/ycmd#1731 Add support for `workspace/didChangeWorkspaceFolders` LSP notification.
ycm-core/ycmd#1730 LSP servers are now updated with latest server state afer reset
ycm-core/ycmd#1727 Update JDT to version 1.31.0
ycm-core/ycmd#1726 C# symbol search filtering fix
ycm-core/ycmd#1724 C# GoToDocumentOutline consistency patch
ycm-core/ycmd#1723 Implement GoToDocumentOutline in C#
ycm-core/ycmd#1716 Display tsserver tags in detailed info and GetDoc

`workspace/didChangeWorkspaceFolders` seems to be working fine for java,
rust and go, but should be considered experimental. Definitely more
field experience is needed.
What it should do is allow LSP servers to understand multiple projects
in the same vim instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ship It! Manual override to merge a PR by maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants