public SemanticTokensRegistrationOptions GetRegistrationOptions(SemanticTokensCapability capability, ClientCapabilities clientCapabilities)
 {
     return(new SemanticTokensRegistrationOptions
     {
         DocumentSelector = RazorDefaults.Selector,
         Full = false,
         Legend = RazorSemanticTokensLegend.Instance,
         Range = true,
     });
 }
示例#2
0
 protected override SemanticTokensRegistrationOptions CreateRegistrationOptions(
     SemanticTokensCapability capability, ClientCapabilities clientCapabilities
     )
 {
     return(new SemanticTokensRegistrationOptions
     {
         DocumentSelector = DocumentSelector.ForLanguage("csharp"),
         Legend = new SemanticTokensLegend
         {
             TokenModifiers = capability.TokenModifiers,
             TokenTypes = capability.TokenTypes
         },
         Full = new SemanticTokensCapabilityRequestFull
         {
             Delta = true
         },
         Range = true
     });
 }
 protected override SemanticTokensRegistrationOptions CreateRegistrationOptions(SemanticTokensCapability capability, ClientCapabilities clientCapabilities) => new SemanticTokensRegistrationOptions
 {
     DocumentSelector = LspUtils.PowerShellDocumentSelector,
     Legend           = new SemanticTokensLegend(),
     Full             = new SemanticTokensCapabilityRequestFull
     {
         Delta = true
     },
     Range = true
 };
 public virtual void SetCapability(SemanticTokensCapability capability) => Capability = capability;
 public override void SetCapability(SemanticTokensCapability capability) =>
 _setCapability?.Invoke(capability);
 public void SetCapability(SemanticTokensCapability capability)
 {
     _capability = capability;
 }
 protected override SemanticTokensRegistrationOptions CreateRegistrationOptions(SemanticTokensCapability capability, ClientCapabilities clientCapabilities) => new()
示例#8
0
 public override void SetCapability(SemanticTokensCapability capability) => _capability = capability;