Skip to content

Use brokered service for IManagedHotReloadService in VS#83018

Merged
tmat merged 2 commits intodotnet:mainfrom
tmat:UseIManagedHotReloadServiceBrokeredService
Apr 3, 2026
Merged

Use brokered service for IManagedHotReloadService in VS#83018
tmat merged 2 commits intodotnet:mainfrom
tmat:UseIManagedHotReloadServiceBrokeredService

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Apr 1, 2026

Microsoft Reviewers: Open in CodeFlow

@tmat tmat marked this pull request as ready for review April 2, 2026 21:42
@tmat tmat requested a review from a team as a code owner April 2, 2026 21:42
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Apr 2, 2026

@DustinCampbell ptal

@@ -1,42 +0,0 @@
// Licensed to the .NET Foundation under one or more agreements.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Moved to EditorFeatures layer and linked to DevKit

{ RemoteProjectInitializationStatusService.Moniker, new ServiceRegistration(ServiceAudience.Local, null, allowGuestClients: false) },
{ BrokeredServiceDescriptors.SolutionSnapshotProvider.Moniker, new ServiceRegistration(ServiceAudience.Local, null, allowGuestClients: false) },
{ BrokeredServiceDescriptors.DebuggerManagedHotReloadService.Moniker, new ServiceRegistration(ServiceAudience.Local, null, allowGuestClients: false) },
{ BrokeredServiceDescriptors.HotReloadSessionNotificationService.Moniker, new ServiceRegistration(ServiceAudience.Local, null, allowGuestClients: false) },
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removes unused services

@tmat tmat merged commit 3de19a1 into dotnet:main Apr 3, 2026
25 checks passed
@tmat tmat deleted the UseIManagedHotReloadServiceBrokeredService branch April 3, 2026 15:57
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Apr 3, 2026
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Apr 15, 2026
Re-add HotReloadSessionNotificationService, ManagedHotReloadAgentManagerService,
and GenericHotReloadAgentManagerService descriptors and registrations that were
removed in PR dotnet#83018. These services are still used by the XAML diagnostics
ServiceBrokerWrapper in VS, causing NotLocallyRegistered errors in DevKit logs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Apr 15, 2026
Re-add HotReloadSessionNotificationService, ManagedHotReloadAgentManagerService,
and GenericHotReloadAgentManagerService descriptors and registrations that were
removed in PR dotnet#83018. These services are still used by the XAML diagnostics
ServiceBrokerWrapper in VS, causing NotLocallyRegistered errors in DevKit logs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Apr 15, 2026
Re-add HotReloadSessionNotificationService, ManagedHotReloadAgentManagerService,
and GenericHotReloadAgentManagerService descriptors and registrations that were
removed in PR dotnet#83018. These services are still used by the XAML diagnostics
ServiceBrokerWrapper in VS, causing NotLocallyRegistered errors in DevKit logs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dibarbet added a commit that referenced this pull request Apr 15, 2026
Re-add HotReloadSessionNotificationService,
ManagedHotReloadAgentManagerService, and
GenericHotReloadAgentManagerService descriptors and registrations that
were removed in [PR
#83018](#83018). These services are
still used by the XAML in the C# extension, and without them the logs
are spammed with errors like
```
2026-04-15 13:19:47.388 [debug] [serviceBroker/connect] [BrokeredServiceTraceListener] ServiceBroker Start: 0 : 
2026-04-15 13:19:47.388 [debug] [serviceBroker/connect] [BrokeredServiceTraceListener] Requesting proxy to "Microsoft.VisualStudio.Debugger.HotReloadSessionNotificationService (0.1)"
2026-04-15 13:19:47.388 [debug] [serviceBroker/connect] [BrokeredServiceTraceListener] ServiceBroker Warning: 2 : 
2026-04-15 13:19:47.389 [debug] [serviceBroker/connect] [BrokeredServiceTraceListener] Request for proxy to "Microsoft.VisualStudio.Debugger.HotReloadSessionNotificationService (0.1)" is declined: NotLocallyRegistered.
2026-04-15 13:19:47.389 [debug] [serviceBroker/connect] [BrokeredServiceTraceListener] ServiceBroker Stop: 0 : 
```

See
https://devdiv.visualstudio.com/DevDiv/_git/VS?path=%2Fsrc%2FXaml%2FDiagnostics%2FSource%2FCodeAnalysisDiagnostics%2FLanguageService%2FServiceBrokerWrapper.cs&_a=contents&version=GBmain


###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/roslyn/pull/83184)
jaredpar pushed a commit to jaredpar/roslyn that referenced this pull request Apr 16, 2026
Re-add HotReloadSessionNotificationService, ManagedHotReloadAgentManagerService,
and GenericHotReloadAgentManagerService descriptors and registrations that were
removed in PR dotnet#83018. These services are still used by the XAML diagnostics
ServiceBrokerWrapper in VS, causing NotLocallyRegistered errors in DevKit logs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants