protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) { return(new() { DocumentSelector = Program.Selector }); }
public DefinitionRegistrationOptions GetRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) { return(new DefinitionRegistrationOptions { DocumentSelector = RazorDefaults.Selector, }); }
void ICapability <DefinitionCapability> .SetCapability(DefinitionCapability capability) { }
protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) => new DefinitionRegistrationOptions { DocumentSelector = LspUtils.PowerShellDocumentSelector };
public void SetCapability(DefinitionCapability capability) { _capability = capability; }
public void SetCapability(DefinitionCapability capability) { capability.LinkSupport = true; }
public void SetCapability(DefinitionCapability capability) { capability.DynamicRegistration = true; }
protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) => new()
protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) { return(new DefinitionRegistrationOptions { DocumentSelector = DocumentSelector.ForLanguage("dafny") }); }
public virtual void SetCapability(DefinitionCapability capability) => Capability = capability;
public override void SetCapability(DefinitionCapability capability) => _setCapability?.Invoke(capability);
public abstract void SetCapability(DefinitionCapability capability);