pub fn capabilities() -> ServerCapabilities {
        let text_document_sync = Some(TextDocumentSyncCapability::Options(
            TextDocumentSyncOptions {
                open_close: Some(true),
                change: Some(TextDocumentSyncKind::Full),
                ..TextDocumentSyncOptions::default()
            },
        ));
        let definition_provider = Some(true);
        let hover_provider = Some(HoverProviderCapability::Simple(true));
        let references_provider = Some(true);
        let document_highlight_provider = Some(true);
        let document_symbol_provider = Some(true);
        let workspace_symbol_provider = Some(true);
        let document_formatting_provider = Some(true);
        let document_range_formatting_provider = Some(true);
        let rename_provider = Some(RenameProviderCapability::Options(RenameOptions {
            prepare_provider: Some(true),
            work_done_progress_options: WorkDoneProgressOptions::default(),
        }));
        let folding_range_provider = Some(FoldingRangeProviderCapability::Simple(true));
        let selection_range_provider = Some(SelectionRangeProviderCapability::Simple(true));
        let code_action_provider = Some(CodeActionProviderCapability::Simple(true));
        let completion_provider = Some(CompletionOptions {
            resolve_provider: Some(false),
            trigger_characters: Some(
                vec!["=", "(", "[", "+", "-", "*", "/", "%", "^"]
                    .into_iter()
                    .map(String::from)
                    .collect(),
            ),
            ..CompletionOptions::default()
        });
        let code_lens_provider = Some(CodeLensOptions {
            resolve_provider: Some(true),
        });

        ServerCapabilities {
            text_document_sync,
            selection_range_provider,
            hover_provider,
            completion_provider,
            definition_provider,
            references_provider,
            document_highlight_provider,
            document_symbol_provider,
            workspace_symbol_provider,
            code_action_provider,
            code_lens_provider,
            document_formatting_provider,
            document_range_formatting_provider,
            rename_provider,
            folding_range_provider,
            ..ServerCapabilities::default()
        }
    }
/// Returns capabilities of the language server.
Returns capabilities of the language server.
Returns capabilities of the language server .
pub fn capabilities() -> ServerCapabilities {
        let text_document_sync = Some(TextDocumentSyncCapability::Options(
            TextDocumentSyncOptions {
                open_close: Some(true),
                change: Some(TextDocumentSyncKind::Full),
                ..TextDocumentSyncOptions::default()
            },
        ));
        let definition_provider = Some(true);
        let hover_provider = Some(HoverProviderCapability::Simple(true));
        let references_provider = Some(true);
        let document_highlight_provider = Some(true);
        let document_symbol_provider = Some(true);
        let workspace_symbol_provider = Some(true);
        let document_formatting_provider = Some(true);
        let document_range_formatting_provider = Some(true);
        let rename_provider = Some(RenameProviderCapability::Options(RenameOptions {
            prepare_provider: Some(true),
            work_done_progress_options: WorkDoneProgressOptions::default(),
        }));
        let folding_range_provider = Some(FoldingRangeProviderCapability::Simple(true));
        let selection_range_provider = Some(SelectionRangeProviderCapability::Simple(true));
        let code_action_provider = Some(CodeActionProviderCapability::Simple(true));
        let completion_provider = Some(CompletionOptions {
            resolve_provider: Some(false),
            trigger_characters: Some(
                vec!["=", "(", "[", "+", "-", "*", "/", "%", "^"]
                    .into_iter()
                    .map(String::from)
                    .collect(),
            ),
            ..CompletionOptions::default()
        });
        let code_lens_provider = Some(CodeLensOptions {
            resolve_provider: Some(true),
        });
        ServerCapabilities {
            text_document_sync,
            selection_range_provider,
            hover_provider,
            completion_provider,
            definition_provider,
            references_provider,
            document_highlight_provider,
            document_symbol_provider,
            workspace_symbol_provider,
            code_action_provider,
            code_lens_provider,
            document_formatting_provider,
            document_range_formatting_provider,
            rename_provider,
            folding_range_provider,
            ..ServerCapabilities::default()
        }
    }
pub fn capabilities ( ) -> ServerCapabilities { let text_document_sync = Some ( TextDocumentSyncCapability :: Options ( TextDocumentSyncOptions { open_close : Some ( true ) , change : Some ( TextDocumentSyncKind :: Full ) , .. TextDocumentSyncOptions :: default ( ) } , ) ) ; let definition_provider = Some ( true ) ; let hover_provider = Some ( HoverProviderCapability :: Simple ( true ) ) ; let references_provider = Some ( true ) ; let document_highlight_provider = Some ( true ) ; let document_symbol_provider = Some ( true ) ; let workspace_symbol_provider = Some ( true ) ; let document_formatting_provider = Some ( true ) ; let document_range_formatting_provider = Some ( true ) ; let rename_provider = Some ( RenameProviderCapability :: Options ( RenameOptions { prepare_provider : Some ( true ) , work_done_progress_options : WorkDoneProgressOptions :: default ( ) , } ) ) ; let folding_range_provider = Some ( FoldingRangeProviderCapability :: Simple ( true ) ) ; let selection_range_provider = Some ( SelectionRangeProviderCapability :: Simple ( true ) ) ; let code_action_provider = Some ( CodeActionProviderCapability :: Simple ( true ) ) ; let completion_provider = Some ( CompletionOptions { resolve_provider : Some ( false ) , trigger_characters : Some ( vec ! [ " " " " " " " " " " " " " " " " " " ] . into_iter ( ) . map ( String :: from ) . collect ( ) , ) , .. CompletionOptions :: default ( ) } ) ; let code_lens_provider = Some ( CodeLensOptions { resolve_provider : Some ( true ) , } ) ; ServerCapabilities { text_document_sync , selection_range_provider , hover_provider , completion_provider , definition_provider , references_provider , document_highlight_provider , document_symbol_provider , workspace_symbol_provider , code_action_provider , code_lens_provider , document_formatting_provider , document_range_formatting_provider , rename_provider , folding_range_provider , .. ServerCapabilities :: default ( ) } }
Returns capabilities of the language server.
Returns capabilities of the language server .