Skip to content

Conversation

RikkiGibson
Copy link
Member

@RikkiGibson RikkiGibson commented Jul 29, 2025

These new notifications support integration testing restore for FBPs, and, eventually could allow us to have more visibility for users when design-time builds are happening on the vscode side.

Prerequisite for dotnet/vscode-csharp#8470

@RikkiGibson RikkiGibson marked this pull request as ready for review July 31, 2025 22:44
@RikkiGibson RikkiGibson requested a review from a team as a code owner July 31, 2025 22:44
@RikkiGibson
Copy link
Member Author

@JoeRobich @dibarbet for review.

@jasonmalinowski
Copy link
Member

Are we unable to use our existing watcher setup for integration tests here?

@RikkiGibson
Copy link
Member Author

I am unaware of what the watcher setup is. Is there any example you can point me at?

@RikkiGibson
Copy link
Member Author

@jasonmalinowski did you have any blocking concerns about this PR?

@RikkiGibson
Copy link
Member Author

It was suggested offline that I rework these notifications to be requests instead along with the following types/patterns/existing PRs


https://github.com/dotnet/vscode-csharp/pull/6544/files

Basically the LSP client should be able to call a method which essentially just waits on an IAsynchronousOperationWaiter for a particular feature, "returning" an empty value to the caller when the operation is done.

@RikkiGibson
Copy link
Member Author

Now incorporating work from #70359 and dotnet/vscode-csharp#6544


[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public WaitForAsyncOperationsHandler(AsynchronousOperationListenerProvider listenerProvider)
Copy link
Member

Choose a reason for hiding this comment

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

Use primary constructor.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will allow the next round of IDE auto-fixers to address this. Thanks

@RikkiGibson RikkiGibson changed the title Add messages for when design time builds begin and complete Add waitForAsyncOperations LSP request Aug 8, 2025
@RikkiGibson RikkiGibson merged commit 44860c6 into dotnet:main Aug 8, 2025
25 checks passed
@RikkiGibson RikkiGibson deleted the lsps-design-time-build-notifications branch August 8, 2025 19:19
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 8, 2025
@RikkiGibson RikkiGibson removed this from the Next milestone Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants