Skip to content

Commit

Permalink
Remove and ban MEF in LanguageServer project
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwengier committed Mar 15, 2024
1 parent 55e0597 commit 58e380d
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 530 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See License.txt in the project root for license information.

using System;
using System.Composition;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -12,8 +11,6 @@

namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;

[Export(typeof(RemoteTextLoaderFactory)), Shared]
[method: ImportingConstructor]
internal class DefaultRemoteTextLoaderFactory() : RemoteTextLoaderFactory
{
public override TextLoader Create(string filePath)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.

using System.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Razor.LanguageServer.Common;
Expand All @@ -10,8 +9,6 @@

namespace Microsoft.AspNetCore.Razor.LanguageServer.DocumentColor;

[Export(typeof(IDocumentColorService)), Shared]
[method: ImportingConstructor]
internal sealed class DocumentColorService() : IDocumentColorService
{
public async Task<ColorInformation[]> GetColorInformationAsync(IClientConnection clientConnection, DocumentColorParams request, VersionedDocumentContext? documentContext, CancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See License.txt in the project root for license information.

using System;
using System.Composition;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem;
Expand All @@ -16,8 +15,6 @@

namespace Microsoft.AspNetCore.Razor.LanguageServer;

[Export(typeof(IDocumentContextFactory)), Shared]
[method: ImportingConstructor]
internal sealed class DocumentContextFactory(
IProjectSnapshotManager projectManager,
ISnapshotResolver snapshotResolver,
Expand Down
Loading

0 comments on commit 58e380d

Please # to comment.