Пример #1
0
 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,
     });
 }
Пример #3
0
 void ICapability <DefinitionCapability> .SetCapability(DefinitionCapability capability)
 {
 }
 protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) => new DefinitionRegistrationOptions
 {
     DocumentSelector = LspUtils.PowerShellDocumentSelector
 };
Пример #5
0
 public void SetCapability(DefinitionCapability capability)
 {
     _capability = capability;
 }
Пример #6
0
 public void SetCapability(DefinitionCapability capability)
 {
     capability.LinkSupport = true;
 }
Пример #7
0
 public void SetCapability(DefinitionCapability capability)
 {
     capability.DynamicRegistration = true;
 }
Пример #8
0
 protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities) => new()
Пример #9
0
 protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities)
 {
     return(new DefinitionRegistrationOptions {
         DocumentSelector = DocumentSelector.ForLanguage("dafny")
     });
 }
Пример #10
0
 public virtual void SetCapability(DefinitionCapability capability) => Capability = capability;
 public override void SetCapability(DefinitionCapability capability) => _setCapability?.Invoke(capability);
 public abstract void SetCapability(DefinitionCapability capability);