public void SetCapability(CodeActionCapability capability) { _capability = capability; var extendableClientCapabilities = _languageServer.ClientSettings?.Capabilities as PlatformAgnosticClientCapabilities; _supportsCodeActionResolve = extendableClientCapabilities?.SupportsCodeActionResolve ?? false; }
public void SetCapability(CodeActionCapability capability) { _capability = capability; var languageServerInstance = _languageServer as LanguageServerInstance; var extendableClientCapabilities = languageServerInstance?.ClientSettings?.Capabilities as ExtendableClientCapabilities; _supportsCodeActionResolve = extendableClientCapabilities?.SupportsCodeActionResolve ?? false; }
public CodeActionRegistrationOptions GetRegistrationOptions(CodeActionCapability capability, ClientCapabilities clientCapabilities) { _capability = capability; _supportsCodeActionResolve = _capability.ResolveSupport != null; return(new CodeActionRegistrationOptions() { DocumentSelector = RazorDefaults.Selector, CodeActionKinds = new[] { CodeActionKind.RefactorExtract, CodeActionKind.QuickFix, CodeActionKind.Refactor }, ResolveProvider = true, }); }
public void SetCapability(CodeActionCapability capability) { _capability = capability; }
protected override CodeActionRegistrationOptions CreateRegistrationOptions(CodeActionCapability capability, ClientCapabilities clientCapabilities) => new()
protected override CodeActionRegistrationOptions CreateRegistrationOptions(CodeActionCapability capability, ClientCapabilities clientCapabilities) => new CodeActionRegistrationOptions { // TODO: What do we do with the arguments? DocumentSelector = LspUtils.PowerShellDocumentSelector, CodeActionKinds = new CodeActionKind[] { CodeActionKind.QuickFix } };
public virtual void SetCapability(CodeActionCapability capability) => Capability = capability;
public override void SetCapability(CodeActionCapability capability) => _setCapability?.Invoke(capability);
public abstract void SetCapability(CodeActionCapability capability);