111 references to WellKnownLspServerKinds
Microsoft.CodeAnalysis.EditorFeatures (12)
ExternalAccess\VSTypeScript\Api\AbstactVSTypeScriptLspServiceFactory.cs (1)
13public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
ExternalAccess\VSTypeScript\VSTypeScriptInProcLanguageClient.cs (2)
82public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.RoslynTypeScriptLspServer;
LanguageServer\AbstractInProcLanguageClient.cs (3)
65public abstract WellKnownLspServerKinds ServerKind { get; } 198WellKnownLspServerKinds serverKind, 229WellKnownLspServerKinds serverKind,
LanguageServer\AlwaysActivateInProcLanguageClient.cs (2)
148public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.AlwaysActiveVSLspServer;
LanguageServer\LiveShareInProcLanguageClient.cs (2)
94public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.LiveShareLspServer;
LanguageServer\RazorInProcLanguageClient.cs (2)
99public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.RazorLspServer;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
576private static RoslynLanguageServer CreateLanguageServer(Stream inputStream, Stream outputStream, TestWorkspace workspace, WellKnownLspServerKinds serverKind, ILspServiceLogger logger)
LanguageServer\AbstractLanguageServerProtocolTests.InitializationOptions.cs (2)
18internal WellKnownLspServerKinds ServerKind { get; init; } = WellKnownLspServerKinds.AlwaysActiveVSLspServer;
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorLanguageServerFactoryWrapper.cs (1)
42var languageServer = _languageServerFactory.Create(jsonRpc, capabilitiesProvider, WellKnownLspServerKinds.RazorLspServer, NoOpLspLogger.Instance, hostServices);
Microsoft.CodeAnalysis.LanguageServer.Protocol (71)
CSharpVisualBasicLanguageServerFactory.cs (2)
34WellKnownLspServerKinds serverKind, 53return Create(jsonRpc, capabilitiesProvider, WellKnownLspServerKinds.CSharpVisualBasicLspServer, logger, hostServices);
Handler\CodeLens\CodeLensCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new CodeLensCache();
Handler\CodeLens\CodeLensResolveHandlerFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Completion\CompletionListCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new CompletionListCache();
Handler\Completion\CompletionResolveHandlerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
261WellKnownLspServerKinds.LiveShareLspServer => InternalDiagnosticsOptionsStorage.LiveShareDiagnosticMode, 262WellKnownLspServerKinds.RazorLspServer => InternalDiagnosticsOptionsStorage.RazorDiagnosticMode,
Handler\Diagnostics\DocumentPullDiagnosticHandlerFactory.cs (1)
33public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticHandlerFactory.cs (1)
37public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticHandlerFactory.cs (1)
36public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
71if (context.ServerKind == WellKnownLspServerKinds.RazorLspServer)
Handler\Diagnostics\WorkspacePullDiagnosticHandlerFactory.cs (1)
33public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
82if (request.Character == "\n" && context.ServerKind == WellKnownLspServerKinds.RazorLspServer)
Handler\RequestContext.cs (3)
67public readonly WellKnownLspServerKinds ServerKind; 92WellKnownLspServerKinds serverKind, 132WellKnownLspServerKinds serverKind,
Handler\RequestTelemetryLoggerFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRangeHandlerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRefreshQueueFactory.cs (1)
28public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\ServerInfoProvider.cs (2)
11public ServerInfoProvider(WellKnownLspServerKinds serverKind, ImmutableArray<string> supportedLanguages) 17public readonly 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)
ILanguageServerFactory.cs (1)
18WellKnownLspServerKinds serverKind,
LspServices\AbstractLspServiceProvider.cs (1)
25public LspServices CreateServices(WellKnownLspServerKinds serverKind, ImmutableDictionary<Type, ImmutableArray<Func<ILspServices, object>>> baseServices)
LspServices\ExportCSharpVisualBasicLspServiceFactoryAttribute.cs (2)
19public ExportCSharpVisualBasicLspServiceFactoryAttribute(Type type, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any) : base(type, ProtocolConstants.RoslynLspLanguagesContract, serverKind)
LspServices\ExportCSharpVisualBasicStatelessLspServiceAttribute.cs (2)
13public ExportCSharpVisualBasicStatelessLspServiceAttribute(Type type, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any) : base(type, ProtocolConstants.RoslynLspLanguagesContract, serverKind)
LspServices\ExportLspServiceFactoryAttribute.cs (3)
31public WellKnownLspServerKinds ServerKind { get; } 39public ExportLspServiceFactoryAttribute(Type type, string contractName, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any) : base(contractName, typeof(ILspServiceFactory))
LspServices\ExportStatelessLspServiceAttribute.cs (3)
31public WellKnownLspServerKinds? ServerKind { get; } 39public ExportStatelessLspServiceAttribute(Type type, string contractName, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any) : base(contractName, typeof(ILspService))
LspServices\ILspServiceFactory.cs (1)
13ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind);
LspServices\LspServiceMetadataView.cs (3)
14public WellKnownLspServerKinds ServerKind { get; set; } 23ServerKind = (WellKnownLspServerKinds)metadata[nameof(ServerKind)]; 30ServerKind = WellKnownLspServerKinds.Any;
LspServices\LspServices.cs (2)
37WellKnownLspServerKinds serverKind, 46services = services.Where(lazyService => lazyService.Metadata.ServerKind == serverKind || lazyService.Metadata.ServerKind == WellKnownLspServerKinds.Any);
RoslynLanguageServer.cs (4)
24private readonly WellKnownLspServerKinds _serverKind; 33WellKnownLspServerKinds serverKind) 63WellKnownLspServerKinds serverKind, 88if (serverKind == WellKnownLspServerKinds.CSharpVisualBasicLspServer)
WellKnownLspServerKinds.cs (24)
51public static string ToUserVisibleString(this WellKnownLspServerKinds server) 55WellKnownLspServerKinds.RazorLspServer => "Razor C# Language Server Client", 56WellKnownLspServerKinds.LiveShareLspServer => "Live Share C#/Visual Basic Language Server Client", 57WellKnownLspServerKinds.AlwaysActiveVSLspServer => "Roslyn Language Server Client", 58WellKnownLspServerKinds.CSharpVisualBasicLspServer => "Roslyn Language Server Client", 61WellKnownLspServerKinds.XamlLspServer => "XAML Language Server Client (Experimental)", 62WellKnownLspServerKinds.XamlLspServerDisableUX => "XAML Language Server Client for LiveShare and Codespaces", 63WellKnownLspServerKinds.RoslynTypeScriptLspServer => "Roslyn TypeScript Language Server Client", 68public static string ToTelemetryString(this WellKnownLspServerKinds server) 73WellKnownLspServerKinds.RazorLspServer => "RazorInProcLanguageClient", 76WellKnownLspServerKinds.LiveShareLspServer => "LiveShareInProcLanguageClient", 79WellKnownLspServerKinds.AlwaysActiveVSLspServer => "AlwaysActivateInProcLanguageClient", 82WellKnownLspServerKinds.CSharpVisualBasicLspServer => "CSharpVisualBasicLanguageServerFactory", 85WellKnownLspServerKinds.XamlLspServer => "XamlInProcLanguageClient", 88WellKnownLspServerKinds.XamlLspServerDisableUX => "XamlInProcLanguageClientDisableUX", 90WellKnownLspServerKinds.RoslynTypeScriptLspServer => "RoslynTypeScriptLspServer", 95public static string GetContractName(this WellKnownLspServerKinds server) 99WellKnownLspServerKinds.RazorLspServer => ProtocolConstants.RoslynLspLanguagesContract, 100WellKnownLspServerKinds.LiveShareLspServer => ProtocolConstants.RoslynLspLanguagesContract, 101WellKnownLspServerKinds.AlwaysActiveVSLspServer => ProtocolConstants.RoslynLspLanguagesContract, 102WellKnownLspServerKinds.CSharpVisualBasicLspServer => ProtocolConstants.RoslynLspLanguagesContract, 103WellKnownLspServerKinds.XamlLspServer => "XamlLspLanguages", 104WellKnownLspServerKinds.XamlLspServerDisableUX => "XamlLspLanguages", 105WellKnownLspServerKinds.RoslynTypeScriptLspServer => ProtocolConstants.TypeScriptLanguageContract,
Workspaces\LspWorkspaceManagerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (18)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
310WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.AlwaysActiveVSLspServer,
Diagnostics\PullDiagnosticTests.cs (2)
623GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, DiagnosticMode.SolutionCrawlerPush, WellKnownLspServerKinds.RazorLspServer)); 648GetInitializationOptions(BackgroundAnalysisScope.OpenFiles, useVSDiagnostics, DiagnosticMode.SolutionCrawlerPush, WellKnownLspServerKinds.LiveShareLspServer));
LanguageServerTargetTests.cs (1)
163public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new StatefulLspService();
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (6)
38await using var testLspServer = await CreateTestLspServerAsync(string.Empty, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 61await using var testLspServer = await CreateTestLspServerAsync(string.Empty, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 94await using var testLspServer = await CreateTestLspServerAsync(string.Empty, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 119await using var testLspServer = await CreateTestLspServerAsync(markup, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 140await using var testLspServer = await CreateTestLspServerAsync(string.Empty, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 188await using var testLspServer = await CreateTestLspServerAsync(string.Empty, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
OnAutoInsert\OnAutoInsertTests.cs (5)
277await VerifyMarkupAndExpected("\n", markup, expected, serverKind: WellKnownLspServerKinds.RazorLspServer); 299await VerifyMarkupAndExpected("\n", markup, expected, insertSpaces: false, tabSize: 4, serverKind: WellKnownLspServerKinds.RazorLspServer); 325await VerifyMarkupAndExpected("\n", markup, expected, serverKind: WellKnownLspServerKinds.RazorLspServer); 387WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.AlwaysActiveVSLspServer)
VSTypeScriptHandlerTests.cs (1)
115WellKnownLspServerKinds.RoslynTypeScriptLspServer);
Workspaces\LspWorkspaceManagerTests.cs (1)
199await using var testLspServer = await CreateTestLspServerAsync(markup, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineHelper.cs (1)
59languageServerName: WellKnownLspServerKinds.AlwaysActiveVSLspServer.ToUserVisibleString(),
Microsoft.VisualStudio.LanguageServices.Xaml (5)
Implementation\LanguageClient\XamlInProcLanguageClient.cs (2)
65public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.XamlLspServer;
Implementation\LanguageClient\XamlInProcLanguageClientDisableUX.cs (2)
66public override WellKnownLspServerKinds ServerKind => WellKnownLspServerKinds.XamlLspServerDisableUX;
Implementation\LanguageServer\ExportStatelessXamlLspServiceAttribute.cs (1)
15public ExportStatelessXamlLspServiceAttribute(Type handlerType) : base(handlerType, StringConstants.XamlLspLanguagesContract, WellKnownLspServerKinds.XamlLspServer)