зеркало из https://github.com/dotnet/razor.git
Organize namespaces
This commit is contained in:
Родитель
9264cbd352
Коммит
c6ef39a00c
|
@ -9,7 +9,7 @@ using Microsoft.VisualStudio.Shell;
|
|||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(RazorLogger))]
|
||||
internal class ActivityLogRazorLogger : RazorLogger
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(AggregateProjectCapabilityResolver))]
|
||||
internal class AggregateProjectCapabilityResolver : ProjectCapabilityResolver
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal abstract class DocumentInteractionManager
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
|||
using Microsoft.AspNetCore.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.VisualStudio.Threading;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor.Extensions;
|
||||
namespace Microsoft.VisualStudio.Razor.Extensions;
|
||||
|
||||
internal static class IUIThreadOperationExecutorExtensions
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.Extensions;
|
||||
|
||||
internal static class IVsHierarchyExtensions
|
||||
{
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using System.Runtime.CompilerServices;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.Extensions;
|
||||
|
||||
internal static class JoinableTaskContextExtensions
|
||||
{
|
|
@ -4,11 +4,11 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.Text;
|
||||
namespace Microsoft.VisualStudio.Razor.Extensions;
|
||||
|
||||
internal static class TextBufferExtensions
|
||||
{
|
|
@ -4,7 +4,7 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal interface ILiveShareProjectPathProvider
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal interface IProjectWorkspaceStateGenerator
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@ using System.ComponentModel.Composition;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor.Logging;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ using Microsoft.CodeAnalysis.Razor;
|
|||
using Microsoft.CodeAnalysis.Razor.Logging;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.Client;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Razor.DynamicFiles;
|
||||
|
|
|
@ -9,7 +9,6 @@ using Microsoft.AspNetCore.Razor;
|
|||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.ExternalAccess.Razor;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Razor.DynamicFiles;
|
||||
using Microsoft.VisualStudio.Razor.LanguageClient.DocumentMapping;
|
||||
|
|
|
@ -5,7 +5,6 @@ using System;
|
|||
using System.ComponentModel.Composition;
|
||||
using Microsoft.AspNetCore.Razor.Telemetry;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
||||
namespace Microsoft.VisualStudio.Razor.LanguageClient;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.Client;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ using Microsoft.CodeAnalysis.Razor.Protocol;
|
|||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces.Protocol.ProjectSystem;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.Client;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Razor.LanguageClient.Endpoints;
|
||||
|
|
|
@ -10,7 +10,6 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using System.IO;
|
||||
using System.Threading;
|
||||
using Microsoft.VisualStudio.Commanding;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor.Commanding.Commands;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
|
|
@ -6,11 +6,10 @@ using System.ComponentModel.Composition;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
[Export(typeof(ILiveShareProjectPathProvider))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
internal interface ILiveShareSessionAccessor
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
internal interface IProxyAccessor
|
||||
{
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
[Export(typeof(ILiveShareSessionAccessor))]
|
||||
internal class LiveShareSessionAccessor : ILiveShareSessionAccessor
|
||||
|
@ -12,7 +13,7 @@ internal class LiveShareSessionAccessor : ILiveShareSessionAccessor
|
|||
private bool _guestSessionIsActive;
|
||||
|
||||
// We have a separate IsGuestSessionActive to avoid loading LiveShare dlls unnecessarily.
|
||||
public bool IsGuestSessionActive => _guestSessionIsActive;
|
||||
public bool IsGuestSessionActive => _guestSessionIsActive;
|
||||
public CollaborationSession? Session => _currentSession;
|
||||
|
||||
public void SetSession(CollaborationSession? session)
|
||||
|
|
|
@ -7,10 +7,11 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using IAsyncDisposable = Microsoft.VisualStudio.Threading.IAsyncDisposable;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
internal class ProjectSnapshotSynchronizationService(
|
||||
CollaborationSession sessionContext,
|
||||
|
|
|
@ -6,11 +6,12 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.VisualStudio.LiveShare.Razor.Serialization;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Razor.LiveShare.Serialization;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
[ExportCollaborationService(typeof(ProjectSnapshotSynchronizationService), Scope = SessionScope.Guest)]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.ComponentModel.Composition;
|
|||
using System.Threading;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
[Export(typeof(IProxyAccessor))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -8,13 +8,14 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
|
||||
[ExportCollaborationService(typeof(SessionActiveDetector), Scope = SessionScope.Guest)]
|
||||
[method: ImportingConstructor]
|
||||
internal class RazorGuestInitializationService(
|
||||
[Import(typeof(ILiveShareSessionAccessor))] LiveShareSessionAccessor sessionAccessor) : ICollaborationServiceFactory
|
||||
[Import(typeof(ILiveShareSessionAccessor))] LiveShareSessionAccessor sessionAccessor) : ICollaborationServiceFactory
|
||||
{
|
||||
private const string ViewImportsFileName = "_ViewImports.cshtml";
|
||||
private readonly LiveShareSessionAccessor _sessionAccessor = sessionAccessor;
|
||||
|
@ -95,11 +96,11 @@ internal class RazorGuestInitializationService(
|
|||
|
||||
internal class SessionActiveDetector(Action onDispose) : ICollaborationService, IDisposable
|
||||
{
|
||||
private readonly Action _onDispose = onDispose ?? throw new ArgumentNullException(nameof(onDispose));
|
||||
private readonly Action _onDispose = onDispose ?? throw new ArgumentNullException(nameof(onDispose));
|
||||
|
||||
[SuppressMessage("Usage", "CA1816:Dispose methods should call SuppressFinalize", Justification = "https://github.com/dotnet/roslyn-analyzers/issues/4801")]
|
||||
public virtual void Dispose()
|
||||
{
|
||||
_onDispose();
|
||||
}
|
||||
[SuppressMessage("Usage", "CA1816:Dispose methods should call SuppressFinalize", Justification = "https://github.com/dotnet/roslyn-analyzers/issues/4801")]
|
||||
public virtual void Dispose()
|
||||
{
|
||||
_onDispose();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Host;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Host;
|
||||
|
||||
internal class ProjectHierarchyProxy(
|
||||
CollaborationSession session,
|
||||
|
|
|
@ -5,10 +5,11 @@ using System;
|
|||
using System.ComponentModel.Composition;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Host;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Host;
|
||||
|
||||
[ExportCollaborationService(
|
||||
typeof(IProjectHierarchyProxy),
|
||||
|
|
|
@ -8,9 +8,10 @@ using System.Threading.Tasks;
|
|||
using Microsoft.AspNetCore.Razor;
|
||||
using Microsoft.AspNetCore.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Host;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Host;
|
||||
|
||||
internal class ProjectSnapshotManagerProxy : IProjectSnapshotManagerProxy, ICollaborationService, IDisposable
|
||||
{
|
||||
|
|
|
@ -5,11 +5,12 @@ using System.ComponentModel.Composition;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.VisualStudio.LiveShare.Razor.Serialization;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Razor.LiveShare.Serialization;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Host;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Host;
|
||||
|
||||
[ExportCollaborationService(
|
||||
typeof(IProjectSnapshotManagerProxy),
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be a public interface in order to to be implemented as an RPC proxy by live share.
|
||||
public interface IProjectHierarchyProxy
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be a public interface in order to to be implemented as an RPC proxy by live share.
|
||||
public interface IProjectSnapshotManagerProxy
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be a public interface in order to to be implemented as an RPC proxy by live share.
|
||||
public interface IRemoteHierarchyService : ICollaborationService
|
||||
|
|
|
@ -3,11 +3,10 @@
|
|||
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Threading;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
using Microsoft.VisualStudio.Razor.LiveShare.Guest;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
[Export(typeof(ProjectCapabilityResolver))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using Microsoft.AspNetCore.Razor;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be public because it is exposed by a public interface that is implemented as
|
||||
// an RPC proxy by live share.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be public because it is exposed by a public interface that is implemented as
|
||||
// an RPC proxy by live share.
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using Microsoft.AspNetCore.Razor.Language;
|
||||
using Microsoft.AspNetCore.Razor.ProjectSystem;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be public because it is exposed by a public interface that is implemented as
|
||||
// an RPC proxy by live share. However, its properties and constructor are intentionally internal
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
// This type must be public because it is exposed by a public interface that is implemented as
|
||||
// an RPC proxy by live share.
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
internal class RemoteHierarchyService(CollaborationSession session, JoinableTaskFactory jtf) : IRemoteHierarchyService
|
||||
{
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
using System.ComponentModel.Composition;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.LiveShare;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using Task = System.Threading.Tasks.Task;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare;
|
||||
|
||||
/// <summary>
|
||||
/// In cloud scenarios a client will not have a project system which means any code running on the client needs to have the ability to
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Serialization;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Serialization;
|
||||
|
||||
internal static class LiveShareJsonConverterCollectionExtensions
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using Microsoft.AspNetCore.Razor.ProjectSystem;
|
||||
using Microsoft.AspNetCore.Razor.Serialization.Json;
|
||||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Serialization;
|
||||
namespace Microsoft.VisualStudio.Razor.LiveShare.Serialization;
|
||||
|
||||
internal class ProjectSnapshotHandleProxyJsonConverter : ObjectJsonConverter<ProjectSnapshotHandleProxy>
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.ComponentModel.Composition;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor.Logging;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(ILspServerActivationTracker))]
|
||||
internal class LspServerActivationTracker : ILspServerActivationTracker
|
||||
|
@ -13,11 +13,11 @@ internal class LspServerActivationTracker : ILspServerActivationTracker
|
|||
|
||||
public void Activated()
|
||||
{
|
||||
this.IsActive = true;
|
||||
IsActive = true;
|
||||
}
|
||||
|
||||
public void Deactivated()
|
||||
{
|
||||
this.IsActive = false;
|
||||
IsActive = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal abstract class ProjectCapabilityResolver
|
||||
{
|
||||
|
|
|
@ -11,7 +11,6 @@ using Microsoft.CodeAnalysis;
|
|||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.ComponentModel.Composition;
|
|||
using Microsoft.AspNetCore.Razor.Language;
|
||||
using Microsoft.AspNetCore.Razor.ProjectEngineHost;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.ProjectSystem;
|
||||
|
||||
[Export(typeof(IProjectEngineFactoryProvider))]
|
||||
internal sealed class VisualStudioProjectEngineFactoryProvider : IProjectEngineFactoryProvider
|
|
@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Razor.ProjectEngineHost;
|
|||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.ProjectSystem;
|
||||
|
||||
[Export(typeof(IProjectSnapshotManager))]
|
||||
[method: ImportingConstructor]
|
|
@ -12,7 +12,6 @@ using System.Threading.Tasks.Dataflow;
|
|||
using Microsoft.AspNetCore.Razor;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.ProjectSystem;
|
||||
using Microsoft.VisualStudio.ProjectSystem.Properties;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
|
|
@ -16,7 +16,7 @@ using Microsoft.CodeAnalysis.Razor;
|
|||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IProjectWorkspaceStateGenerator))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
#nullable enable
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IProjectHierarchyProxy
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IProjectHierarchyProxy.GetProjectPathAsync(System.Uri! documentFilePath, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<System.Uri?>!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IProjectSnapshotManagerProxy
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IProjectSnapshotManagerProxy.Changed -> System.EventHandler<Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs!>!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IProjectSnapshotManagerProxy.GetProjectManagerStateAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotManagerProxyState!>!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IRemoteHierarchyService
|
||||
Microsoft.VisualStudio.LiveShare.Razor.IRemoteHierarchyService.HasCapabilityAsync(System.Uri! pathOfFileInProject, string! capability, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs.IntermediateOutputPath.get -> System.Uri!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs.Kind.get -> Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs.Newer.get -> Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy?
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs.Older.get -> Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy?
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs.ProjectChangeEventProxyArgs(Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy? older, Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy? newer, Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind kind) -> void
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectChangeEventProxyArgs.ProjectFilePath.get -> System.Uri!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind.ProjectAdded = 0 -> Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind.ProjectChanged = 2 -> Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind.ProjectRemoved = 1 -> Microsoft.VisualStudio.LiveShare.Razor.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotManagerProxyState
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotManagerProxyState.ProjectHandles.get -> System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy!>!
|
||||
Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotManagerProxyState.ProjectSnapshotManagerProxyState(System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.LiveShare.Razor.ProjectSnapshotHandleProxy!>! projectHandles) -> void
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IProjectHierarchyProxy
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IProjectHierarchyProxy.GetProjectPathAsync(System.Uri! documentFilePath, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<System.Uri?>!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IProjectSnapshotManagerProxy
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IProjectSnapshotManagerProxy.Changed -> System.EventHandler<Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs!>!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IProjectSnapshotManagerProxy.GetProjectManagerStateAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotManagerProxyState!>!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IRemoteHierarchyService
|
||||
Microsoft.VisualStudio.Razor.LiveShare.IRemoteHierarchyService.HasCapabilityAsync(System.Uri! pathOfFileInProject, string! capability, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<bool>!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs.IntermediateOutputPath.get -> System.Uri!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs.Kind.get -> Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs.Newer.get -> Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy?
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs.Older.get -> Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy?
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs.ProjectChangeEventProxyArgs(Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy? older, Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy? newer, Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind kind) -> void
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectChangeEventProxyArgs.ProjectFilePath.get -> System.Uri!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind.ProjectAdded = 0 -> Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind.ProjectChanged = 2 -> Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind.ProjectRemoved = 1 -> Microsoft.VisualStudio.Razor.LiveShare.ProjectProxyChangeKind
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotManagerProxyState
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotManagerProxyState.ProjectHandles.get -> System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy!>!
|
||||
Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotManagerProxyState.ProjectSnapshotManagerProxyState(System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Razor.LiveShare.ProjectSnapshotHandleProxy!>! projectHandles) -> void
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal static class RazorConstants
|
||||
{
|
||||
|
@ -10,4 +12,10 @@ internal static class RazorConstants
|
|||
public const string LegacyCoreContentType = "LegacyRazorCoreCSharp";
|
||||
|
||||
public const string RazorLSPContentTypeName = "Razor";
|
||||
|
||||
public const string RazorLanguageServiceString = "4513FA64-5B72-4B58-9D4C-1D3C81996C2C";
|
||||
|
||||
public static readonly Guid RazorLanguageServiceGuid = new(RazorLanguageServiceString);
|
||||
|
||||
public const string VSProjectItemsIdentifier = "CF_VSSTGPROJECTITEMS";
|
||||
}
|
||||
|
|
|
@ -2,19 +2,18 @@
|
|||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
using Microsoft.VisualStudio.Text.Editor.DragDrop;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
// The intention of this class is to disable dropping random files into the Razor language service content type without throwing. Ultimately
|
||||
// this class serves as a workaround to a limitation in the core editor APIs where without it you get an error dialog. This class allows us
|
||||
// to silently "do nothing" when a drop occurs on one of our documents.
|
||||
[Export(typeof(IDropHandlerProvider))]
|
||||
[ContentType(RazorConstants.RazorLSPContentTypeName)]
|
||||
[DropFormat(RazorVisualStudioWindowsConstants.VSProjectItemsIdentifier)]
|
||||
[DropFormat(RazorConstants.VSProjectItemsIdentifier)]
|
||||
[Name(nameof(RazorDisableDropHandlerProvider))]
|
||||
[Order(Before = "LanguageServiceTextDropHandler")]
|
||||
internal sealed class RazorDisableDropHandlerProvider : IDropHandlerProvider
|
||||
|
|
|
@ -7,9 +7,9 @@ using System.ComponentModel.Composition;
|
|||
using Microsoft.CodeAnalysis.Razor.Settings;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Language.Intellisense;
|
||||
using Microsoft.VisualStudio.OLE.Interop;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
|
@ -18,7 +18,7 @@ using Microsoft.VisualStudio.TextManager.Interop;
|
|||
using Microsoft.VisualStudio.Utilities;
|
||||
using IServiceProvider = System.IServiceProvider;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
// The entire purpose of this class is to workaround quirks in Visual Studio's core editor handling. In Razor scenarios
|
||||
// we can have a multitude of content types that represents a Razor file:
|
||||
|
@ -95,7 +95,7 @@ internal class RazorLSPTextViewConnectionListener : ITextViewConnectionListener
|
|||
if (!_editorFeatureDetector.IsRemoteClient())
|
||||
{
|
||||
vsTextView.GetBuffer(out var vsBuffer);
|
||||
vsBuffer.SetLanguageServiceID(RazorVisualStudioWindowsConstants.RazorLanguageServiceGuid);
|
||||
vsBuffer.SetLanguageServiceID(RazorConstants.RazorLanguageServiceGuid);
|
||||
}
|
||||
|
||||
RazorLSPTextViewFilter.CreateAndRegister(vsTextView);
|
||||
|
@ -212,7 +212,7 @@ internal class RazorLSPTextViewConnectionListener : ITextViewConnectionListener
|
|||
|
||||
private static void InitializeRazorTextViewOptions(IVsTextManager4 textManager, RazorEditorOptionsTracker optionsTracker)
|
||||
{
|
||||
var langPrefs3 = new LANGPREFERENCES3[] { new LANGPREFERENCES3() { guidLang = RazorVisualStudioWindowsConstants.RazorLanguageServiceGuid } };
|
||||
var langPrefs3 = new LANGPREFERENCES3[] { new LANGPREFERENCES3() { guidLang = RazorConstants.RazorLanguageServiceGuid } };
|
||||
if (VSConstants.S_OK != textManager.GetUserPreferences4(null, langPrefs3, null))
|
||||
{
|
||||
return;
|
||||
|
@ -258,7 +258,7 @@ internal class RazorLSPTextViewConnectionListener : ITextViewConnectionListener
|
|||
var insertSpaces = true;
|
||||
var tabSize = 4;
|
||||
|
||||
var langPrefs3 = new LANGPREFERENCES3[] { new LANGPREFERENCES3() { guidLang = RazorVisualStudioWindowsConstants.RazorLanguageServiceGuid } };
|
||||
var langPrefs3 = new LANGPREFERENCES3[] { new LANGPREFERENCES3() { guidLang = RazorConstants.RazorLanguageServiceGuid } };
|
||||
if (VSConstants.S_OK != textManager.GetUserPreferences4(null, langPrefs3, null))
|
||||
{
|
||||
return (new ClientSpaceSettings(IndentWithTabs: !insertSpaces, tabSize), ClientCompletionSettings.Default);
|
||||
|
|
|
@ -5,9 +5,9 @@ using System;
|
|||
using System.Runtime.InteropServices;
|
||||
using Microsoft.VisualStudio.TextManager.Interop;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Guid(RazorVisualStudioWindowsConstants.RazorLanguageServiceString)]
|
||||
[Guid(RazorConstants.RazorLanguageServiceString)]
|
||||
internal partial class RazorLanguageService : IVsLanguageInfo
|
||||
{
|
||||
public int GetLanguageName(out string bstrName)
|
|
@ -4,15 +4,15 @@
|
|||
using System;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor;
|
||||
using Microsoft.VisualStudio.LanguageServices.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Razor.Debugging;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.TextManager.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
using TextSpan = Microsoft.VisualStudio.TextManager.Interop.TextSpan;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal partial class RazorLanguageService : IVsLanguageDebugInfo
|
||||
{
|
|
@ -8,7 +8,7 @@ using System.Threading;
|
|||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.ComponentModelHost;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(RazorStartupInitializer))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
|
||||
internal class RazorVisualStudioWindowsConstants
|
||||
{
|
||||
public const string RazorLanguageServiceString = "4513FA64-5B72-4B58-9D4C-1D3C81996C2C";
|
||||
|
||||
public static readonly Guid RazorLanguageServiceGuid = new(RazorLanguageServiceString);
|
||||
|
||||
public const string VSProjectItemsIdentifier = "CF_VSSTGPROJECTITEMS";
|
||||
}
|
|
@ -5,13 +5,14 @@ using System;
|
|||
using System.ComponentModel.Composition;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor.Logging;
|
||||
using Microsoft.CodeAnalysis.Razor.Remote;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using Microsoft.VisualStudio.Razor.Settings;
|
||||
|
||||
namespace Microsoft.CodeAnalysis.Remote.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.Remote;
|
||||
|
||||
[Export(typeof(IOutOfProcSemanticTokensService))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -12,12 +12,13 @@ using Microsoft.AspNetCore.Razor.PooledObjects;
|
|||
using Microsoft.AspNetCore.Razor.Serialization;
|
||||
using Microsoft.AspNetCore.Razor.Telemetry;
|
||||
using Microsoft.AspNetCore.Razor.Utilities;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.Remote;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
|
||||
namespace Microsoft.CodeAnalysis.Remote.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor.Remote;
|
||||
|
||||
[Export(typeof(ITagHelperResolver))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -10,7 +10,7 @@ using Microsoft.CodeAnalysis.Razor.Remote;
|
|||
using Microsoft.CodeAnalysis.Razor.SemanticTokens;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor.Remote;
|
||||
namespace Microsoft.VisualStudio.Razor.Remote;
|
||||
|
||||
[Export(typeof(IRemoteClientProvider))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -4,13 +4,12 @@
|
|||
using System.ComponentModel.Composition;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(DocumentInteractionManager))]
|
||||
internal class VisualStudioWindowsDocumentInteractionManager : DocumentInteractionManager
|
||||
internal class VisualStudioDocumentInteractionManager : DocumentInteractionManager
|
||||
{
|
||||
public override Task OpenDocumentAsync(string filePath, CancellationToken cancellationToken)
|
||||
{
|
|
@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
|||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IErrorReporter))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IFilePathService))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
|
||||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
using Microsoft.CodeAnalysis.Host;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal abstract class VisualStudioHostServicesProvider
|
||||
{
|
||||
|
|
|
@ -6,14 +6,14 @@ using System.ComponentModel.Composition;
|
|||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.Internal.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Settings;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(LSPEditorFeatureDetector))]
|
||||
internal class VisualStudioWindowsLSPEditorFeatureDetector : LSPEditorFeatureDetector
|
||||
internal class VisualStudioLSPEditorFeatureDetector : LSPEditorFeatureDetector
|
||||
{
|
||||
private const string LegacyRazorEditorFeatureFlag = "Razor.LSP.LegacyEditor";
|
||||
private const string DotNetCoreCSharpCapability = "CSharp&CPS";
|
||||
|
@ -30,7 +30,7 @@ internal class VisualStudioWindowsLSPEditorFeatureDetector : LSPEditorFeatureDet
|
|||
private readonly RazorLogger _logger;
|
||||
|
||||
[ImportingConstructor]
|
||||
public VisualStudioWindowsLSPEditorFeatureDetector(AggregateProjectCapabilityResolver projectCapabilityResolver, RazorLogger logger)
|
||||
public VisualStudioLSPEditorFeatureDetector(AggregateProjectCapabilityResolver projectCapabilityResolver, RazorLogger logger)
|
||||
{
|
||||
_projectCapabilityResolver = projectCapabilityResolver;
|
||||
_vsUIShellOpenDocument = new Lazy<IVsUIShellOpenDocument>(() =>
|
||||
|
@ -43,14 +43,14 @@ internal class VisualStudioWindowsLSPEditorFeatureDetector : LSPEditorFeatureDet
|
|||
|
||||
_useLegacyEditor = new Lazy<bool>(() =>
|
||||
{
|
||||
var featureFlags = (IVsFeatureFlags)AsyncPackage.GetGlobalService(typeof(SVsFeatureFlags));
|
||||
var featureFlags = (IVsFeatureFlags)Package.GetGlobalService(typeof(SVsFeatureFlags));
|
||||
var legacyEditorFeatureFlagEnabled = featureFlags.IsFeatureEnabled(LegacyRazorEditorFeatureFlag, defaultValue: false);
|
||||
if (legacyEditorFeatureFlagEnabled)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var settingsManager = (Settings.ISettingsManager)ServiceProvider.GlobalProvider.GetService(typeof(SVsSettingsPersistenceManager));
|
||||
var settingsManager = (ISettingsManager)ServiceProvider.GlobalProvider.GetService(typeof(SVsSettingsPersistenceManager));
|
||||
Assumes.Present(settingsManager);
|
||||
|
||||
var useLegacyEditor = settingsManager.GetValueOrDefault<bool>(UseLegacyASPNETCoreEditorSetting);
|
||||
|
@ -62,7 +62,7 @@ internal class VisualStudioWindowsLSPEditorFeatureDetector : LSPEditorFeatureDet
|
|||
|
||||
[Obsolete("Test constructor")]
|
||||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
internal VisualStudioWindowsLSPEditorFeatureDetector()
|
||||
internal VisualStudioLSPEditorFeatureDetector()
|
||||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
{
|
||||
}
|
|
@ -7,10 +7,10 @@ using Microsoft.CodeAnalysis.Razor.Workspaces;
|
|||
using Microsoft.Internal.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(LanguageServerFeatureOptions))]
|
||||
internal class VisualStudioWindowsLanguageServerFeatureOptions : LanguageServerFeatureOptions
|
||||
internal class VisualStudioLanguageServerFeatureOptions : LanguageServerFeatureOptions
|
||||
{
|
||||
private const string ShowAllCSharpCodeActionsFeatureFlag = "Razor.LSP.ShowAllCSharpCodeActions";
|
||||
private const string IncludeProjectKeyInGeneratedFilePathFeatureFlag = "Razor.LSP.IncludeProjectKeyInGeneratedFilePath";
|
||||
|
@ -28,7 +28,7 @@ internal class VisualStudioWindowsLanguageServerFeatureOptions : LanguageServerF
|
|||
private readonly Lazy<bool> _forceRuntimeCodeGeneration;
|
||||
|
||||
[ImportingConstructor]
|
||||
public VisualStudioWindowsLanguageServerFeatureOptions(LSPEditorFeatureDetector lspEditorFeatureDetector)
|
||||
public VisualStudioLanguageServerFeatureOptions(LSPEditorFeatureDetector lspEditorFeatureDetector)
|
||||
{
|
||||
if (lspEditorFeatureDetector is null)
|
||||
{
|
|
@ -4,19 +4,18 @@
|
|||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(ProjectCapabilityResolver))]
|
||||
internal class VisualStudioWindowsProjectCapabilityResolver : ProjectCapabilityResolver
|
||||
internal class VisualStudioProjectCapabilityResolver : ProjectCapabilityResolver
|
||||
{
|
||||
private readonly RazorLogger _razorLogger;
|
||||
|
||||
[ImportingConstructor]
|
||||
public VisualStudioWindowsProjectCapabilityResolver(RazorLogger razorLogger)
|
||||
public VisualStudioProjectCapabilityResolver(RazorLogger razorLogger)
|
||||
{
|
||||
if (razorLogger is null)
|
||||
{
|
|
@ -4,7 +4,7 @@
|
|||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(ProjectSnapshotManagerDispatcher))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -11,7 +11,7 @@ using Microsoft.VisualStudio.Shell;
|
|||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IRazorStartupService))]
|
||||
internal class VisualStudioSolutionCloseChangeTrigger : IRazorStartupService, IVsSolutionEvents3, IDisposable
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Host;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServices;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(VisualStudioHostServicesProvider))]
|
||||
internal class VisualStudioWindowsHostServicesProvider : VisualStudioHostServicesProvider
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.LanguageServices;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IWorkspaceProvider))]
|
||||
[method: ImportingConstructor]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Microsoft.VisualStudio.TextManager.Interop;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal class VsEnumBSTR : IVsEnumBSTR
|
||||
{
|
|
@ -9,13 +9,13 @@ using System.Runtime.InteropServices;
|
|||
using System.Threading;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using Task = System.Threading.Tasks.Task;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IRazorStartupService))]
|
||||
internal class VsSolutionUpdatesProjectSnapshotChangeTrigger : IRazorStartupService, IVsUpdateSolutionEvents2, IDisposable
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.CodeAnalysis;
|
|||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
internal partial class WorkspaceProjectStateChangeDetector
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
|||
using Microsoft.CodeAnalysis.Razor.Utilities;
|
||||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
namespace Microsoft.VisualStudio.Razor;
|
||||
|
||||
[Export(typeof(IRazorStartupService))]
|
||||
internal partial class WorkspaceProjectStateChangeDetector : IRazorStartupService, IDisposable
|
||||
|
|
|
@ -5,8 +5,8 @@ using System;
|
|||
using System.ComponentModel.Composition;
|
||||
using System.Linq;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ using System.ComponentModel.Composition;
|
|||
using System.Linq;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.Completion;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Language.Intellisense;
|
||||
using Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion;
|
||||
using Microsoft.VisualStudio.LegacyEditor.Razor.Parsing;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
|
|
@ -6,9 +6,9 @@ using System.ComponentModel.Composition;
|
|||
using System.Linq;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.Completion;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion;
|
||||
using Microsoft.VisualStudio.LegacyEditor.Razor.Parsing;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Text;
|
|||
using Microsoft.AspNetCore.Razor.Language;
|
||||
using Microsoft.AspNetCore.Razor.Language.Legacy;
|
||||
using Microsoft.AspNetCore.Razor.Language.Syntax;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
using Microsoft.VisualStudio.Text.Operations;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Text.Operations;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@ using System.Collections.Generic;
|
|||
using System.ComponentModel.Composition;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
|
|
|
@ -15,8 +15,8 @@ using Microsoft.AspNetCore.Razor.ProjectEngineHost;
|
|||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.CodeAnalysis.Razor.Settings;
|
||||
using Microsoft.Extensions.Internal;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Language.Intellisense;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
using static Microsoft.VisualStudio.LegacyEditor.Razor.Parsing.BackgroundParser;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
using System.ComponentModel.Composition;
|
||||
using Microsoft.AspNetCore.Razor.ProjectEngineHost;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Language.Intellisense;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
||||
namespace Microsoft.VisualStudio.LegacyEditor.Razor.Parsing;
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Threading;
|
||||
|
|
|
@ -5,8 +5,8 @@ using System;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using Microsoft.AspNetCore.Razor.Language;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LegacyEditor.Razor.Parsing;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
|
||||
namespace Microsoft.VisualStudio.LegacyEditor.Razor;
|
||||
|
|
|
@ -11,8 +11,8 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
using Microsoft.AspNetCore.Razor.ProjectEngineHost;
|
||||
using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LegacyEditor.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
|
|
|
@ -10,8 +10,7 @@ using Microsoft.AspNetCore.Razor;
|
|||
using Microsoft.CodeAnalysis.Razor.Workspaces;
|
||||
using Microsoft.VisualStudio.ComponentModelHost;
|
||||
using Microsoft.VisualStudio.Editor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Debugging;
|
||||
using Microsoft.VisualStudio.Razor.LanguageClient.Options;
|
||||
using Microsoft.VisualStudio.Razor.Logging;
|
||||
|
|
|
@ -11,8 +11,8 @@ using Microsoft.AspNetCore.Razor;
|
|||
using Microsoft.AspNetCore.Razor.PooledObjects;
|
||||
using Microsoft.CodeAnalysis.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Editor;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.ProjectSystem.VS;
|
||||
using Microsoft.VisualStudio.Razor.Extensions;
|
||||
using Microsoft.VisualStudio.Razor.Settings;
|
||||
using Microsoft.VisualStudio.Razor.Snippets;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Documents;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Editor;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Razor.Documents;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Text.Tagging;
|
||||
|
|
|
@ -7,7 +7,6 @@ using System.IO;
|
|||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using Microsoft.AspNetCore.Razor.Language;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage.Extensions;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
|
@ -19,6 +18,7 @@ using Microsoft.VisualStudio.Threading;
|
|||
using Microsoft.VisualStudio.Razor.LanguageClient;
|
||||
using Microsoft.VisualStudio.Razor.Documents;
|
||||
using Microsoft.VisualStudio.Razor.SyntaxVisualizer;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
|
||||
namespace Microsoft.VisualStudio.RazorExtension.SyntaxVisualizer;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Razor.Language.Legacy;
|
|||
using Microsoft.AspNetCore.Razor.ProjectEngineHost;
|
||||
using Microsoft.AspNetCore.Razor.Test.Common.ProjectSystem;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Microsoft.AspNetCore.Razor.Test.Common.VisualStudio;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
using Microsoft.AspNetCore.Razor.Test.Common.Workspaces;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServices.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Microsoft.AspNetCore.Razor.Test.Common.VisualStudio;
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.ComponentModel.Composition.Hosting;
|
|||
using System.ComponentModel.Composition.Primitives;
|
||||
using Microsoft.CodeAnalysis.Razor;
|
||||
using Microsoft.VisualStudio.ComponentModelHost;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.Razor;
|
||||
using Microsoft.VisualStudio.Razor.LanguageClient;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
using System;
|
||||
using Microsoft.AspNetCore.Razor.Test.Common;
|
||||
using Microsoft.AspNetCore.Razor.Test.Common.Workspaces;
|
||||
using Microsoft.VisualStudio.Editor.Razor;
|
||||
using Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
using Microsoft.VisualStudio.Text;
|
||||
using Microsoft.VisualStudio.Utilities;
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче