11use crate :: documents:: Store ;
22use crate :: queue:: Queue ;
33use crate :: workspace:: get_project_path;
4- use djls_conf:: Settings ; // Import Settings
4+ use djls_conf:: Settings ;
55use djls_project:: DjangoProject ;
66use std:: sync:: Arc ;
77use tokio:: sync:: RwLock ;
@@ -16,7 +16,7 @@ pub struct DjangoLanguageServer {
1616 client : Client ,
1717 project : Arc < RwLock < Option < DjangoProject > > > ,
1818 documents : Arc < RwLock < Store > > ,
19- settings : Arc < RwLock < Settings > > , // Add settings field
19+ settings : Arc < RwLock < Settings > > ,
2020 queue : Queue ,
2121}
2222
@@ -26,7 +26,7 @@ impl DjangoLanguageServer {
2626 client,
2727 project : Arc :: new ( RwLock :: new ( None ) ) ,
2828 documents : Arc :: new ( RwLock :: new ( Store :: new ( ) ) ) ,
29- settings : Arc :: new ( RwLock :: new ( Settings :: default ( ) ) ) , // Initialize with defaults
29+ settings : Arc :: new ( RwLock :: new ( Settings :: default ( ) ) ) ,
3030 queue : Queue :: new ( ) ,
3131 }
3232 }
@@ -109,7 +109,6 @@ impl LanguageServer for DjangoLanguageServer {
109109 }
110110 }
111111
112- // Load settings if project path was found
113112 self . update_settings ( project_path. as_deref ( ) ) . await ;
114113
115114 Ok ( InitializeResult {
@@ -123,13 +122,13 @@ impl LanguageServer for DjangoLanguageServer {
123122 ] ) ,
124123 ..Default :: default ( )
125124 } ) ,
126- // Register for configuration changes
127125 workspace : Some ( WorkspaceServerCapabilities {
128126 workspace_folders : Some ( WorkspaceFoldersServerCapabilities {
129127 supported : Some ( true ) ,
130128 change_notifications : Some ( OneOf :: Left ( true ) ) ,
131129 } ) ,
132- file_operations : None , // Add file operations if needed later
130+ // Add file operations if needed later
131+ file_operations : None ,
133132 } ) ,
134133 text_document_sync : Some ( TextDocumentSyncCapability :: Options (
135134 TextDocumentSyncOptions {
0 commit comments