Beispiel #1
0
 private static CompletionRegistrationOptions CreateRegistrationOptions() => new CompletionRegistrationOptions
 {
     DocumentSelector    = DocumentSelectorFactory.Create(),
     AllCommitCharacters = new Container <string>(),
     ResolveProvider     = false,
     TriggerCharacters   = new Container <string>()
 };
 private static DocumentSymbolRegistrationOptions GetSymbolRegistrationOptions()
 {
     return(new DocumentSymbolRegistrationOptions
     {
         DocumentSelector = DocumentSelectorFactory.Create()
     });
 }
Beispiel #3
0
 protected override DocumentHighlightRegistrationOptions CreateRegistrationOptions(
     DocumentHighlightCapability capability,
     ClientCapabilities clientCapabilities)
 {
     return(new DocumentHighlightRegistrationOptions
     {
         DocumentSelector = DocumentSelectorFactory.Create( )
     });
 }
 private static SemanticTokensRegistrationOptions GetSemanticTokensRegistrationOptions()
 {
     return(new SemanticTokensRegistrationOptions
     {
         DocumentSelector = DocumentSelectorFactory.Create(),
         Legend = new SemanticTokensLegend(),
         Full = new SemanticTokensCapabilityRequestFull
         {
             Delta = true
         },
         Range = true
     });
 }
 private static HoverRegistrationOptions CreateRegistrationOptions() =>
 new HoverRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create()
 };
Beispiel #6
0
 private static TextDocumentSaveRegistrationOptions GetSaveRegistrationOptions()
 => new TextDocumentSaveRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create(),
     IncludeText      = true,
 };
 private static DocumentFormattingRegistrationOptions CreateRegistrationOptions() =>
 new DocumentFormattingRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create()
 };
 private static DocumentHighlightRegistrationOptions CreateRegistrationOptions() =>
 new DocumentHighlightRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create()
 };
Beispiel #9
0
 private static CodeActionRegistrationOptions CreateCodeActionRegistrationOptions() => new CodeActionRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create(),
     CodeActionKinds  = new Container <CodeActionKind>(CodeActionKind.QuickFix)
 };
Beispiel #10
0
 private static DefinitionRegistrationOptions CreateRegistrationOptions() =>
 new DefinitionRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create()
 };
Beispiel #11
0
 private static ReferenceRegistrationOptions CreateRegistrationOptions() => new ReferenceRegistrationOptions
 {
     DocumentSelector = DocumentSelectorFactory.Create()
 };