44 references to ProtocolConstants
Microsoft.CodeAnalysis.EditorFeatures (17)
ExternalAccess\VSTypeScript\Api\ExportTypeScriptLspRequestHandlerProviderAttribute.cs (1)
12
internal class ExportTypeScriptLspServiceFactoryAttribute(Type handlerType) : ExportLspServiceFactoryAttribute(handlerType,
ProtocolConstants
.TypeScriptLanguageContract)
ExternalAccess\VSTypeScript\VSTypeScriptDidChangeHandler.cs (1)
13
[ExportStatelessLspService(typeof(DidChangeHandler),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptDidCloseHandler.cs (1)
13
[ExportStatelessLspService(typeof(DidCloseHandler),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptDidOpenHandler.cs (1)
13
[ExportStatelessLspService(typeof(DidOpenHandler),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptLifeCycleManager.cs (1)
13
[ExportLspServiceFactory(typeof(LspServiceLifeCycleManager),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptLspServiceProvider.cs (2)
17
[ImportMany(
ProtocolConstants
.TypeScriptLanguageContract)] IEnumerable<Lazy<ILspService, LspServiceMetadataView>> lspServices,
18
[ImportMany(
ProtocolConstants
.TypeScriptLanguageContract)] IEnumerable<Lazy<ILspServiceFactory, LspServiceMetadataView>> lspServiceFactories) : AbstractLspServiceProvider(lspServices, lspServiceFactories)
ExternalAccess\VSTypeScript\VSTypeScriptLspWorkspaceManagerFactory.cs (1)
12
[ExportLspServiceFactory(typeof(LspWorkspaceManager),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptProjectContextHandler.cs (1)
13
[ExportStatelessLspService(typeof(GetTextDocumentWithContextHandler),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptPullDiagnosticHandlerProvider.cs (2)
16
[ExportLspServiceFactory(typeof(DocumentPullDiagnosticHandler),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
25
[ExportLspServiceFactory(typeof(WorkspacePullDiagnosticHandler),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptRequestExecutionQueueProvider.cs (1)
14
[ExportStatelessLspService(typeof(IRequestExecutionQueueProvider<RequestContext>),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
ExternalAccess\VSTypeScript\VSTypeScriptRequestTelemetryLoggerFactory.cs (1)
13
[ExportLspServiceFactory(typeof(RequestTelemetryLogger),
ProtocolConstants
.TypeScriptLanguageContract), Shared]
LanguageServer\AlwaysActivateInProcLanguageClient.cs (1)
49
protected override ImmutableArray<string> SupportedLanguages =>
ProtocolConstants
.RoslynLspLanguages;
LanguageServer\LiveShareInProcLanguageClient.cs (1)
37
protected override ImmutableArray<string> SupportedLanguages =>
ProtocolConstants
.RoslynLspLanguages;
LanguageServer\RazorInProcLanguageClient.cs (2)
52
public const string ClientName =
ProtocolConstants
.RazorCSharp;
56
protected override ImmutableArray<string> SupportedLanguages =>
ProtocolConstants
.RoslynLspLanguages;
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (4)
Cohost\ExportCohostLspServiceFactoryAttribute.cs (1)
12
internal class ExportCohostLspServiceFactoryAttribute(Type handlerType) : ExportLspServiceFactoryAttribute(handlerType,
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.AlwaysActiveVSLspServer);
Cohost\ExportCohostStatelessLspServiceAttribute.cs (1)
12
internal sealed class ExportCohostStatelessLspServiceAttribute(Type handlerType) : ExportStatelessLspServiceAttribute(handlerType,
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.AlwaysActiveVSLspServer);
ExportRazorLspServiceFactoryAttribute.cs (1)
12
internal class ExportRazorLspServiceFactoryAttribute(Type handlerType) : ExportLspServiceFactoryAttribute(handlerType,
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any);
ExportRazorStatelessLspServiceAttribute.cs (1)
12
internal sealed class ExportRazorStatelessLspServiceAttribute(Type handlerType) : ExportStatelessLspServiceAttribute(handlerType,
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (3)
External\ExportXamlLspServiceFactoryAttribute.cs (2)
19
: base(type,
ProtocolConstants
.RoslynLspLanguagesContract, serverKind)
24
: base(type,
ProtocolConstants
.RoslynLspLanguagesContract)
External\ExportXamlStatelessLspServiceAttribute.cs (1)
17
public ExportXamlStatelessLspServiceAttribute(Type handlerType) : base(handlerType,
ProtocolConstants
.RoslynLspLanguagesContract)
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\Razor\RazorClientLanguageServerManagerFactory.cs (1)
12
[ExportLspServiceFactory(typeof(IRazorClientLanguageServerManager),
ProtocolConstants
.RoslynLspLanguagesContract)]
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
CSharpVisualBasicLanguageServerFactory.cs (1)
45
ProtocolConstants
.RoslynLspLanguages,
LspServices\ExportCSharpVisualBasicLspServiceFactoryAttribute.cs (1)
15
: ExportLspServiceFactoryAttribute(type,
ProtocolConstants
.RoslynLspLanguagesContract, serverKind);
LspServices\ExportCSharpVisualBasicStatelessLspServiceAttribute.cs (1)
12
: ExportStatelessLspServiceAttribute(type,
ProtocolConstants
.RoslynLspLanguagesContract, serverKind);
LspServices\RoslynLspServiceProvider.cs (2)
16
[ImportMany(
ProtocolConstants
.RoslynLspLanguagesContract)] IEnumerable<Lazy<ILspService, LspServiceMetadataView>> lspServices,
17
[ImportMany(
ProtocolConstants
.RoslynLspLanguagesContract)] IEnumerable<Lazy<ILspServiceFactory, LspServiceMetadataView>> lspServiceFactories)
WellKnownLspServerKinds.cs (5)
97
WellKnownLspServerKinds.RazorLspServer =>
ProtocolConstants
.RoslynLspLanguagesContract,
98
WellKnownLspServerKinds.LiveShareLspServer =>
ProtocolConstants
.RoslynLspLanguagesContract,
99
WellKnownLspServerKinds.AlwaysActiveVSLspServer =>
ProtocolConstants
.RoslynLspLanguagesContract,
100
WellKnownLspServerKinds.CSharpVisualBasicLspServer =>
ProtocolConstants
.RoslynLspLanguagesContract,
103
WellKnownLspServerKinds.RoslynTypeScriptLspServer =>
ProtocolConstants
.TypeScriptLanguageContract,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (9)
LspServicesTests.cs (9)
96
[ExportStatelessLspService(typeof(TestLspService),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.CSharpVisualBasicLspServer), Shared]
101
[ExportLspServiceFactory(typeof(TestLspServiceFromFactory),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.CSharpVisualBasicLspServer), Shared]
106
[ExportStatelessLspService(typeof(TestLspService),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any), Shared]
111
[ExportLspServiceFactory(typeof(TestLspServiceFromFactory),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any), Shared]
116
[ExportStatelessLspService(typeof(TestLspService),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.CSharpVisualBasicLspServer), Shared]
121
[ExportLspServiceFactory(typeof(TestLspServiceFromFactory),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.CSharpVisualBasicLspServer), Shared]
126
[ExportStatelessLspService(typeof(TestLspService),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any), Shared]
131
[ExportLspServiceFactory(typeof(TestLspServiceFromFactory),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any), Shared]
136
[ExportStatelessLspService(typeof(TestLspService),
ProtocolConstants
.RoslynLspLanguagesContract, WellKnownLspServerKinds.AlwaysActiveVSLspServer), Shared]