コード例 #1
0
 protected override DefinitionRegistrationOptions CreateRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities)
 {
     return(new()
     {
         DocumentSelector = Program.Selector
     });
 }
コード例 #2
0
 public DefinitionRegistrationOptions GetRegistrationOptions(DefinitionCapability capability, ClientCapabilities clientCapabilities)
 {
     return(new DefinitionRegistrationOptions
     {
         DocumentSelector = RazorDefaults.Selector,
     });
 }
コード例 #3
0
 void ICapability <DefinitionCapability> .SetCapability(DefinitionCapability capability)
 {
 }
コード例 #4
0
 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);
コード例 #12
0
 public abstract void SetCapability(DefinitionCapability capability);