mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-07 02:40:38 +00:00
fix: ensure proper LSP text document sync capabilities declaration
This commit is contained in:
parent
da388d7efc
commit
4ac5cf8a07
1 changed files with 9 additions and 9 deletions
|
@ -63,15 +63,6 @@ impl LanguageServer for DjangoLanguageServer {
|
|||
|
||||
Ok(InitializeResult {
|
||||
capabilities: ServerCapabilities {
|
||||
completion_provider: Some(CompletionOptions {
|
||||
resolve_provider: Some(false),
|
||||
trigger_characters: Some(vec![
|
||||
"{".to_string(),
|
||||
"%".to_string(),
|
||||
" ".to_string(),
|
||||
]),
|
||||
..Default::default()
|
||||
}),
|
||||
text_document_sync: Some(TextDocumentSyncCapability::Options(
|
||||
TextDocumentSyncOptions {
|
||||
open_close: Some(true),
|
||||
|
@ -81,6 +72,15 @@ impl LanguageServer for DjangoLanguageServer {
|
|||
save: Some(SaveOptions::default().into()),
|
||||
},
|
||||
)),
|
||||
completion_provider: Some(CompletionOptions {
|
||||
resolve_provider: Some(false),
|
||||
trigger_characters: Some(vec![
|
||||
"{".to_string(),
|
||||
"%".to_string(),
|
||||
" ".to_string(),
|
||||
]),
|
||||
..Default::default()
|
||||
}),
|
||||
diagnostic_provider: Some(DiagnosticServerCapabilities::Options(DiagnosticOptions {
|
||||
identifier: Some("django".to_string()),
|
||||
inter_file_dependencies: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue