mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-10 12:26:50 +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 {
|
Ok(InitializeResult {
|
||||||
capabilities: ServerCapabilities {
|
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(
|
text_document_sync: Some(TextDocumentSyncCapability::Options(
|
||||||
TextDocumentSyncOptions {
|
TextDocumentSyncOptions {
|
||||||
open_close: Some(true),
|
open_close: Some(true),
|
||||||
|
@ -81,6 +72,15 @@ impl LanguageServer for DjangoLanguageServer {
|
||||||
save: Some(SaveOptions::default().into()),
|
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 {
|
diagnostic_provider: Some(DiagnosticServerCapabilities::Options(DiagnosticOptions {
|
||||||
identifier: Some("django".to_string()),
|
identifier: Some("django".to_string()),
|
||||||
inter_file_dependencies: false,
|
inter_file_dependencies: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue