Skip to content

Add client side support for refreshing source generated files#7791

Merged
dibarbet merged 2 commits intodotnet:mainfrom
dibarbet:refresh_sg
Nov 20, 2024
Merged

Add client side support for refreshing source generated files#7791
dibarbet merged 2 commits intodotnet:mainfrom
dibarbet:refresh_sg

Conversation

@dibarbet
Copy link
Member

Implements client side support for refreshing source generated files. Requires server side change to be merged and inserted in this PR.

sg_refresh

@dibarbet dibarbet requested a review from a team as a code owner November 15, 2024 21:16
dibarbet added a commit to dotnet/roslyn that referenced this pull request Nov 16, 2024
Client side PR - dotnet/vscode-csharp#7791

Implements support for refreshing source generated files provided by
LSP. Refresh notifications are sent to the client based on workspace
changes that may affect source generated files. To handle the
overreporting of refresh notifications, I also implemented resultId
based support in the get text handler - it will now avoid re-sending the
entire text to the client if nothing has changed.


![sg_refresh](https://github.com/user-attachments/assets/065a8532-56c7-4e45-a559-0a451d37697a)
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.

2 participants