2018-08-10 13:13:39 -05:00
|
|
|
use languageserver_types::{
|
|
|
|
ServerCapabilities,
|
|
|
|
TextDocumentSyncCapability,
|
|
|
|
TextDocumentSyncOptions,
|
|
|
|
TextDocumentSyncKind,
|
|
|
|
};
|
2018-08-10 07:07:43 -05:00
|
|
|
|
|
|
|
pub const SERVER_CAPABILITIES: ServerCapabilities = ServerCapabilities {
|
2018-08-10 13:13:39 -05:00
|
|
|
text_document_sync: Some(TextDocumentSyncCapability::Options(
|
|
|
|
TextDocumentSyncOptions {
|
|
|
|
open_close: Some(true),
|
|
|
|
change: Some(TextDocumentSyncKind::Full),
|
|
|
|
will_save: None,
|
|
|
|
will_save_wait_until: None,
|
|
|
|
save: None,
|
|
|
|
}
|
|
|
|
)),
|
2018-08-10 07:07:43 -05:00
|
|
|
hover_provider: None,
|
|
|
|
completion_provider: None,
|
|
|
|
signature_help_provider: None,
|
|
|
|
definition_provider: None,
|
|
|
|
type_definition_provider: None,
|
|
|
|
implementation_provider: None,
|
|
|
|
references_provider: None,
|
|
|
|
document_highlight_provider: None,
|
2018-08-11 06:44:12 -05:00
|
|
|
document_symbol_provider: Some(true),
|
2018-08-10 07:07:43 -05:00
|
|
|
workspace_symbol_provider: None,
|
2018-08-12 13:02:56 -05:00
|
|
|
code_action_provider: Some(true),
|
2018-08-10 07:07:43 -05:00
|
|
|
code_lens_provider: None,
|
|
|
|
document_formatting_provider: None,
|
|
|
|
document_range_formatting_provider: None,
|
|
|
|
document_on_type_formatting_provider: None,
|
|
|
|
rename_provider: None,
|
|
|
|
color_provider: None,
|
|
|
|
execute_command_provider: None,
|
|
|
|
};
|