Skip to content

Commit

Permalink
Remove and ban MEF in LanguageServer project (#10102)
Browse files Browse the repository at this point in the history
Fixes #10099

All of the deleted files here were already being removed/moved in
#10097. This was only added to MEF
for cohosting, and its definitely not needed any more. Also added in the
new banned api files.
  • Loading branch information
davidwengier authored Mar 15, 2024
2 parents 69dfb62 + 58e380d commit 11edeff
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 11edeff

Please # to comment.