1 type derived from ClientCapabilities
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\VSInternalClientCapabilities.cs (1)
12internal class VSInternalClientCapabilities : ClientCapabilities
56 references to ClientCapabilities
Microsoft.CodeAnalysis.EditorFeatures (1)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptCapabilitiesProvider.cs (1)
12/// Returns the <see cref="ClientCapabilities"/> provided by typescript.
Microsoft.CodeAnalysis.LanguageServer.Protocol (54)
DefaultCapabilitiesProvider.cs (1)
46public ServerCapabilities GetCapabilities(ClientCapabilities clientCapabilities)
Extensions\Extensions.cs (4)
190public static bool HasVisualStudioLspCapability(this ClientCapabilities? clientCapabilities) 200public static bool HasCompletionListDataCapability(this ClientCapabilities clientCapabilities) 210public static bool HasCompletionListCommitCharactersCapability(this ClientCapabilities clientCapabilities) 240private static bool TryGetVSCompletionListSetting(ClientCapabilities clientCapabilities, [NotNullWhen(returnValue: true)] out VSInternalCompletionListSetting? completionListSetting)
Handler\AbstractRefreshQueue.cs (3)
35protected abstract bool? GetRefreshSupport(ClientCapabilities clientCapabilities); 52public Task OnInitializedAsync(ClientCapabilities clientCapabilities, RequestContext context, CancellationToken cancellationToken) 58public void Initialize(ClientCapabilities clientCapabilities)
Handler\CodeActions\CodeActionsHandler.cs (1)
57var clientCapability = context.GetRequiredClientCapabilities();
Handler\CodeLens\CodeLensRefreshQueue.cs (1)
31protected override bool? GetRefreshSupport(ClientCapabilities clientCapabilities)
Handler\Completion\CompletionCapabilityHelper.cs (1)
32public CompletionCapabilityHelper(ClientCapabilities clientCapabilities)
Handler\Configuration\DidChangeConfigurationNotificationHandler_OnInitialized.cs (1)
14public async Task OnInitializedAsync(ClientCapabilities clientCapabilities, RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (3)
121var clientCapabilities = context.GetRequiredClientCapabilities(); 279ClientCapabilities clientCapabilities) 314private ImmutableArray<LSP.Diagnostic> ConvertDiagnostic(IDiagnosticSource diagnosticSource, DiagnosticData diagnosticData, ClientCapabilities capabilities)
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (2)
48public ImmutableArray<string> GetDocumentSourceProviderNames(ClientCapabilities clientCapabilities) 51public ImmutableArray<string> GetWorkspaceSourceProviderNames(ClientCapabilities clientCapabilities)
Handler\Diagnostics\DiagnosticSourceProviders\DocumentSyntaxAndSemanticDiagnosticSourceProvider.cs (1)
23public bool IsEnabled(ClientCapabilities clientCapabilities) => true;
Handler\Diagnostics\DiagnosticSourceProviders\IDiagnosticSourceManager.cs (2)
21ImmutableArray<string> GetDocumentSourceProviderNames(ClientCapabilities clientCapabilities); 26ImmutableArray<string> GetWorkspaceSourceProviderNames(ClientCapabilities clientCapabilities);
Handler\Diagnostics\DiagnosticSourceProviders\IDiagnosticSourceProvider.cs (1)
27bool IsEnabled(ClientCapabilities clientCapabilities);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
32public bool IsEnabled(ClientCapabilities clientCapabilities) => true;
Handler\Diagnostics\DiagnosticsRefreshQueue.cs (1)
102protected override bool? GetRefreshSupport(ClientCapabilities clientCapabilities)
Handler\Diagnostics\Public\PublicDocumentNonLocalDiagnosticSourceProvider.cs (1)
30public bool IsEnabled(ClientCapabilities clientCapabilities) => true;
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler_IOnInitialized.cs (1)
19public async Task OnInitializedAsync(ClientCapabilities clientCapabilities, RequestContext context, CancellationToken cancellationToken)
Handler\EditAndContinue\DocumentEditAndContinueDiagnosticSourceProvider.cs (1)
24public bool IsEnabled(ClientCapabilities capabilities) => true;
Handler\EditAndContinue\WorkspaceEditAndContinueDiagnosticSourceProvider.cs (1)
25public bool IsEnabled(ClientCapabilities capabilities) => true;
Handler\Hover\HoverHandler.cs (2)
45var clientCapabilities = context.GetRequiredClientCapabilities(); 59ClientCapabilities clientCapabilities,
Handler\IInitializeManager.cs (2)
11ClientCapabilities GetClientCapabilities(); 13ClientCapabilities? TryGetClientCapabilities();
Handler\InitializeManager.cs (3)
19public ClientCapabilities GetClientCapabilities() 23throw new InvalidOperationException($"Tried to get required {nameof(ClientCapabilities)} before it was set"); 40public ClientCapabilities? TryGetClientCapabilities()
Handler\InlayHint\InlayHintRefreshQueue.cs (1)
58protected override bool? GetRefreshSupport(ClientCapabilities clientCapabilities)
Handler\References\FindAllReferencesHandler.cs (1)
64var clientCapabilities = context.GetRequiredClientCapabilities();
Handler\References\FindUsagesLSPContext.cs (1)
83ClientCapabilities clientCapabilities,
Handler\RequestContext.cs (5)
35private readonly ClientCapabilities? _clientCapabilities; 173ClientCapabilities? clientCapabilities, 205public ClientCapabilities GetRequiredClientCapabilities() 208? throw new ArgumentNullException($"{nameof(ClientCapabilities)} is null when it was required for {Method}") 231ClientCapabilities? clientCapabilities,
Handler\RequestContextFactory.cs (1)
25var clientCapabilities = clientCapabilitiesManager.TryGetClientCapabilities();
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
111protected override bool? GetRefreshSupport(ClientCapabilities clientCapabilities) => clientCapabilities.Workspace?.SemanticTokens?.RefreshSupport;
Handler\ServerLifetime\InitializedHandler.cs (1)
24var clientCapabilities = requestContext.GetRequiredClientCapabilities();
Handler\ServerLifetime\InitializeHandler.cs (1)
27var clientCapabilities = clientCapabilitiesManager.TryGetClientCapabilities();
Handler\Symbols\DocumentSymbolsHandler.cs (1)
45var clientCapabilities = context.GetRequiredClientCapabilities();
Handler\Tasks\DocumentTaskDiagnosticSourceProvider.cs (1)
24public bool IsEnabled(ClientCapabilities capabilities) => capabilities.HasVisualStudioLspCapability();
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (1)
27public bool IsEnabled(ClientCapabilities capabilities) => capabilities.HasVisualStudioLspCapability();
ICapabilitiesProvider.cs (1)
11ServerCapabilities GetCapabilities(ClientCapabilities clientCapabilities);
IOnInitialized.cs (1)
14Task OnInitializedAsync(ClientCapabilities clientCapabilities, RequestContext context, CancellationToken cancellationToken);
Protocol\InitializeParams.cs (1)
91public ClientCapabilities Capabilities
Protocol\Internal\Converters\VSInternalExtensionUtilities.cs (1)
32AddOrReplaceConverter<ClientCapabilities, VSInternalClientCapabilities>();
RoslynLanguageServer.cs (1)
162public Task OnInitializedAsync(ClientCapabilities clientCapabilities, RequestContext context, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SemanticTokens\SemanticTokensRangeTests.cs (1)
583var capabilities = GetCapabilities(isVS);