212 references to WellKnownLspServerKinds
Microsoft.CodeAnalysis.EditorFeatures (11)
ExternalAccess\VSTypeScript\VSTypeScriptInProcLanguageClient.cs (2)
39public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.RoslynTypeScriptLspServer;
LanguageServer\AbstractInProcLanguageClient.cs (3)
55public abstract WellKnownLspServerKinds ServerKind { get; } 171WellKnownLspServerKinds serverKind, 203WellKnownLspServerKinds serverKind,
LanguageServer\AlwaysActivateInProcCapabilitiesProvider.cs (1)
18[ExportCSharpVisualBasicStatelessLspService(typeof(ICapabilitiesProvider), WellKnownLspServerKinds.AlwaysActiveVSLspServer), Shared]
LanguageServer\AlwaysActivateInProcLanguageClient.cs (2)
39public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.AlwaysActiveVSLspServer;
LanguageServer\LiveShareCapabilitiesProvider.cs (1)
14[ExportCSharpVisualBasicStatelessLspService(typeof(ICapabilitiesProvider), WellKnownLspServerKinds.LiveShareLspServer), Shared]
LanguageServer\LiveShareInProcLanguageClient.cs (2)
38public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.LiveShareLspServer;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
LanguageServer\VSTypeScriptHandlerTests.cs (2)
89protected override RoslynLanguageServer CreateLanguageServer(Stream inputStream, Stream outputStream, WellKnownLspServerKinds serverKind, AbstractLspLogger logger) 104WellKnownLspServerKinds.RoslynTypeScriptLspServer);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (3)
External\ExportXamlLspServiceFactoryAttribute.cs (1)
18public ExportXamlLspServiceFactoryAttribute(Type type, WellKnownLspServerKinds serverKind)
External\XamlRequestHandlerFactoryBase.cs (1)
22public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Internal\OnInitializedServiceFactory.cs (1)
33public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.LanguageServer (9)
BrokeredServices\ServiceBrokerFactory.cs (1)
27public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new ServiceBrokerFactory(onServiceBrokerInitialized, exportProvider, loggerFactory);
BrokeredServices\ServiceBrokerShutdown.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
FileBasedPrograms\CsprojInConeChecker.cs (1)
21public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
FileBasedPrograms\FileBasedProgramsEntryPointDiscovery.cs (1)
36public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
FileBasedPrograms\FileBasedProgramsWorkspaceProviderFactory.cs (1)
24[ExportCSharpVisualBasicStatelessLspService(typeof(ILspMiscellaneousFilesWorkspaceProviderFactory), WellKnownLspServerKinds.CSharpVisualBasicLspServer), Shared]
LanguageServer\Handler\CopilotCompletion\CopilotCompletionResolveContextHandler.cs (1)
14[ExportCSharpVisualBasicStatelessLspService(typeof(CopilotCompletionResolveContextHandler), WellKnownLspServerKinds.Any), Shared]
LanguageServer\LanguageServerHost.cs (1)
50WellKnownLspServerKinds.CSharpVisualBasicLspServer,
Telemetry\VSCodeRequestTelemetryLogger.cs (2)
13[ExportCSharpVisualBasicStatelessLspService(typeof(RequestTelemetryLogger), serverKind: WellKnownLspServerKinds.CSharpVisualBasicLspServer), Shared] 16internal sealed class VSCodeRequestTelemetryLogger() : RequestTelemetryLogger(WellKnownLspServerKinds.CSharpVisualBasicLspServer.ToTelemetryString())
Microsoft.CodeAnalysis.LanguageServer.Protocol (71)
CSharpVisualBasicLanguageServerFactory.cs (1)
32WellKnownLspServerKinds serverKind,
DefaultCapabilitiesProvider.cs (1)
28[ExportCSharpVisualBasicStatelessLspService(typeof(ICapabilitiesProvider), WellKnownLspServerKinds.Any)]
Handler\CodeLens\CodeLensRefreshQueueFactory.cs (1)
21public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Completion\CompletionListCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new CompletionListCache();
Handler\Configuration\DidChangeConfigurationNotificationHandlerFactory.cs (1)
26public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDiagnosticSourceHelpers.cs (1)
63if (context.ServerKind == WellKnownLspServerKinds.RoslynTypeScriptLspServer &&
Handler\Diagnostics\DiagnosticsRefreshQueue.cs (1)
24public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\DocumentPullDiagnosticHandlerFactory.cs (1)
22public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticHandlerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticHandlerFactory.cs (1)
22public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\WorkspacePullDiagnosticHandlerFactory.cs (1)
22public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\InlayHint\InlayHintCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new InlayHintCache();
Handler\InlayHint\InlayHintRefreshQueueFactory.cs (1)
21public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\ProjectContext\ProjectContextRefreshQueueFactory.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\RequestContext.cs (3)
151public readonly WellKnownLspServerKinds ServerKind; 171WellKnownLspServerKinds serverKind, 227WellKnownLspServerKinds serverKind,
Handler\ResolveDataCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensFullHandlerFactory.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRangeHandlerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRefreshQueueFactory.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\ServerInfoProvider.cs (2)
11public ServerInfoProvider(WellKnownLspServerKinds serverKind, ImmutableArray<string> supportedLanguages) 17public readonly WellKnownLspServerKinds ServerKind;
Handler\ServerLifetime\ExtensionMessageHandlerShutdown.cs (1)
21public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SourceGenerators\SourceGeneratorRefreshQueueFactory.cs (1)
18public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SourceGenerators\WorkspaceRefreshSourceGeneratorsHandler.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SpellCheck\DocumentSpellCheckHandlerFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SpellCheck\WorkspaceSpellCheckHandlerFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Telemetry\RequestTelemetryLoggerFactory.cs (1)
16public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\WorkDoneProgress\WorkDoneProgressManagerFactory.cs (1)
16public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
ILanguageServerFactory.cs (1)
18WellKnownLspServerKinds serverKind,
LspServices\AbstractExportLspServiceAttribute.cs (2)
35public WellKnownLspServerKinds? ServerKind { get; } 57Type serviceType, string contractName, Type contractType, bool isStateless, WellKnownLspServerKinds serverKind)
LspServices\AbstractLspServiceProvider.cs (1)
19public LspServices CreateServices(WellKnownLspServerKinds serverKind, FrozenDictionary<string, ImmutableArray<BaseService>> baseServices)
LspServices\ExportCSharpVisualBasicLspServiceFactoryAttribute.cs (2)
14internal class ExportCSharpVisualBasicLspServiceFactoryAttribute(Type type, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any)
LspServices\ExportCSharpVisualBasicStatelessLspServiceAttribute.cs (2)
11internal class ExportCSharpVisualBasicStatelessLspServiceAttribute(Type type, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any)
LspServices\ExportLspServiceFactoryAttribute.cs (2)
19Type serviceType, string contractName, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any)
LspServices\ExportStatelessLspServiceAttribute.cs (2)
19Type serviceType, string contractName, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any)
LspServices\ILspServiceFactory.cs (1)
13ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind);
LspServices\LspServiceMetadataView.cs (2)
17public WellKnownLspServerKinds ServerKind { get; } 37ServerKind = (WellKnownLspServerKinds)metadata[nameof(AbstractExportLspServiceAttribute.ServerKind)];
LspServices\LspServices.cs (5)
38WellKnownLspServerKinds serverKind, 52foreach (var lazyServiceFactory in mefLspServiceFactories.Where(f => f.Metadata.ServerKind == WellKnownLspServerKinds.Any)) 56foreach (var lazyService in mefLspServices.Where(s => s.Metadata.ServerKind == WellKnownLspServerKinds.Any)) 73Contract.ThrowIfFalse(metadata.ServerKind == WellKnownLspServerKinds.Any); 82Contract.ThrowIfTrue(existing.Metadata.ServerKind == WellKnownLspServerKinds.Any);
RoslynLanguageServer.cs (4)
31private readonly WellKnownLspServerKinds _serverKind; 40WellKnownLspServerKinds serverKind, 115WellKnownLspServerKinds serverKind, 140if (serverKind == WellKnownLspServerKinds.CSharpVisualBasicLspServer)
WellKnownLspServerKinds.cs (15)
38public static string ToUserVisibleString(this WellKnownLspServerKinds server) 42WellKnownLspServerKinds.LiveShareLspServer => "Live Share C#/Visual Basic Language Server Client", 43WellKnownLspServerKinds.AlwaysActiveVSLspServer => "Roslyn Language Server Client", 44WellKnownLspServerKinds.CSharpVisualBasicLspServer => "Roslyn Language Server Client", 47WellKnownLspServerKinds.RoslynTypeScriptLspServer => "Roslyn TypeScript Language Server Client", 52public static string ToTelemetryString(this WellKnownLspServerKinds server) 57WellKnownLspServerKinds.LiveShareLspServer => "LiveShareInProcLanguageClient", 60WellKnownLspServerKinds.AlwaysActiveVSLspServer => "AlwaysActivateInProcLanguageClient", 63WellKnownLspServerKinds.CSharpVisualBasicLspServer => "CSharpVisualBasicLanguageServerFactory", 65WellKnownLspServerKinds.RoslynTypeScriptLspServer => "RoslynTypeScriptLspServer", 70public static string GetContractName(this WellKnownLspServerKinds server) 74WellKnownLspServerKinds.LiveShareLspServer => ProtocolConstants.RoslynLspLanguagesContract, 75WellKnownLspServerKinds.AlwaysActiveVSLspServer => ProtocolConstants.RoslynLspLanguagesContract, 76WellKnownLspServerKinds.CSharpVisualBasicLspServer => ProtocolConstants.RoslynLspLanguagesContract, 77WellKnownLspServerKinds.RoslynTypeScriptLspServer => ProtocolConstants.TypeScriptLanguageContract,
Workspaces\LspWorkspaceManagerFactory.cs (1)
18public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Workspaces\LspWorkspaceRegistrationServiceFactory.cs (1)
18public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (52)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (2)
50ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 82ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer,
Definitions\GoToTypeDefinitionTests.cs (1)
248await using var testLspServer = await CreateTestLspServerAsync(source, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
326WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.AlwaysActiveVSLspServer,
Diagnostics\DiagnosticRegistrationTests.cs (1)
47ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer,
Diagnostics\PullDiagnosticTests.cs (1)
618GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, CompilerDiagnosticsScope.OpenFiles, useVSDiagnostics, WellKnownLspServerKinds.LiveShareLspServer));
HandlerTests.cs (3)
290var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 418public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) 447public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
LanguageServerTargetTests.cs (1)
155public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new StatefulLspService();
LspServicesTests.cs (17)
23await using var server = await CreateTestLspServerAsync("", mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition); 36await using var server = await CreateTestLspServerAsync("", mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition); 49await using var server = await CreateTestLspServerAsync("", mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition); 62await Assert.ThrowsAnyAsync<Exception>(async () => await CreateTestLspServerAsync("", mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition)); 69await Assert.ThrowsAnyAsync<Exception>(async () => await CreateTestLspServerAsync("", mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition)); 76await using var server = await CreateTestLspServerAsync("", mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition); 81await using var server2 = await CreateTestLspServerAsync(server.TestWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.AlwaysActiveVSLspServer }, LanguageNames.CSharp); 93public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new TestLspServiceFromFactory(this.GetType().Name); 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]
Metadata\LspMetadataAsSourceWorkspaceTests.cs (2)
38await using var testLspServer = await CreateTestLspServerAsync(source, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 75await using var testLspServer = await CreateTestLspServerAsync(source, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
OnAutoInsert\AbstractOnAutoInsertTests.cs (4)
29WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.AlwaysActiveVSLspServer, 67WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.AlwaysActiveVSLspServer,
ProtocolConversionsTests.cs (2)
388await using var testLspServer = await CreateTestLspServerAsync(source, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 404await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
UriTests.cs (11)
40await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 66await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 104await using var testLspServer = await CreateXmlTestLspServerAsync(markup, mutatingLspWorkspace, initializationOptions: new() { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 137"Initial Disk Contents", mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 168await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 216await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 262await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 298await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 337await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 360await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 383await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
WorkDoneProgressTests.cs (2)
147ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 161public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Workspaces\LspWorkspaceManagerTests.cs (3)
496[], mutatingLspWorkspace: true, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 556"Initial Disk Contents", mutatingLspWorkspace: true, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 594"Initial Disk Contents", mutatingLspWorkspace: true, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
Microsoft.CodeAnalysis.LanguageServer.UnitTests (39)
FileBasedProgramsEntryPointDiscoveryTests.cs (3)
286ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 319ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 386ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer,
FileBasedProgramsWorkspaceTests.cs (36)
87await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 124await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 146await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 184await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 210await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 238await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 269ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 300await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 359await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 396await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 432await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 486ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 533ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 568await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 618await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 659await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 699await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 744await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 812ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer 863await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 937ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 993ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1063ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1126ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1170ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1234ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1286ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1346ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1376ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1407ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1468ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1499ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1533ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1563await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 1591ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer, 1616await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }, composition: null);
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (1)
39LanguageServerName = WellKnownLspServerKinds.AlwaysActiveVSLspServer.ToUserVisibleString(),
Microsoft.VisualStudio.LanguageServices.Razor (9)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\ExportRazorLspServiceFactoryAttribute.cs (1)
13internal class ExportRazorLspServiceFactoryAttribute(Type handlerType) : ExportLspServiceFactoryAttribute(handlerType, ProtocolConstants.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\ExportRazorStatelessLspServiceAttribute.cs (1)
13internal sealed class ExportRazorStatelessLspServiceAttribute(Type handlerType) : ExportStatelessLspServiceAttribute(handlerType, ProtocolConstants.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorConfigurationChangedServiceFactory.cs (3)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) 30if (context.ServerKind is not (WellKnownLspServerKinds.AlwaysActiveVSLspServer or WellKnownLspServerKinds.CSharpVisualBasicLspServer))
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorStartupServiceFactory.cs (3)
30public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) 52if (context.ServerKind is not (WellKnownLspServerKinds.AlwaysActiveVSLspServer or WellKnownLspServerKinds.CSharpVisualBasicLspServer))
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\SemanticTokens\RazorSemanticTokensRefreshQueueWrapper.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (6)
Telemetry\TelemetryReporterTests.cs (6)
362WellKnownLspServerKinds.AlwaysActiveVSLspServer.GetContractName(), 369WellKnownLspServerKinds.AlwaysActiveVSLspServer.GetContractName(), 376WellKnownLspServerKinds.AlwaysActiveVSLspServer.GetContractName(), 383WellKnownLspServerKinds.AlwaysActiveVSLspServer.GetContractName(), 390WellKnownLspServerKinds.AlwaysActiveVSLspServer.GetContractName(), 397WellKnownLspServerKinds.AlwaysActiveVSLspServer.GetContractName(),
Microsoft.VisualStudioCode.RazorExtension (9)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\ExportRazorLspServiceFactoryAttribute.cs (1)
13internal class ExportRazorLspServiceFactoryAttribute(Type handlerType) : ExportLspServiceFactoryAttribute(handlerType, ProtocolConstants.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\ExportRazorStatelessLspServiceAttribute.cs (1)
13internal sealed class ExportRazorStatelessLspServiceAttribute(Type handlerType) : ExportStatelessLspServiceAttribute(handlerType, ProtocolConstants.RoslynLspLanguagesContract, WellKnownLspServerKinds.Any);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorConfigurationChangedServiceFactory.cs (3)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) 30if (context.ServerKind is not (WellKnownLspServerKinds.AlwaysActiveVSLspServer or WellKnownLspServerKinds.CSharpVisualBasicLspServer))
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\RazorStartupServiceFactory.cs (3)
30public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) 52if (context.ServerKind is not (WellKnownLspServerKinds.AlwaysActiveVSLspServer or WellKnownLspServerKinds.CSharpVisualBasicLspServer))
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\SemanticTokens\RazorSemanticTokensRefreshQueueWrapper.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)