Skip to content

Commit 859ba0d

Browse files
authored
Fix VS xaml lsp shutdown (#78304)
was refactored in the extensions work, and we missed adding an export for the VS xaml server resolves https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2456006
2 parents 510f24d + 13a47b5 commit 859ba0d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
6+
using System.Composition;
7+
using Microsoft.CodeAnalysis.Editor.Xaml;
8+
using Microsoft.CodeAnalysis.Host.Mef;
9+
using Microsoft.CodeAnalysis.LanguageServer;
10+
using Microsoft.CodeAnalysis.LanguageServer.Handler.ServerLifetime;
11+
12+
namespace Microsoft.VisualStudio.LanguageServices.Xaml.LanguageServer;
13+
14+
[ExportLspServiceFactory(typeof(LspServiceLifeCycleManager), StringConstants.XamlLspLanguagesContract), Shared]
15+
[method: ImportingConstructor]
16+
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
17+
internal sealed class XamlLifeCycleManager(LspWorkspaceRegistrationService lspWorkspaceRegistrationService) : LspServiceLifeCycleManager.LspLifeCycleManagerFactory(lspWorkspaceRegistrationService);

0 commit comments

Comments
 (0)