@@ -160,14 +160,14 @@ version = {version}
160
160
position_encoding = {encoding:?}
161
161
workspace_root_folders = {workspace_folders:#?}
162
162
indexed_configuration_files = {config_files:#?}
163
- open_documents = {open_documents }
163
+ open_documents_len = {open_documents_len }
164
164
client_capabilities = {client_capabilities:#?}
165
165
" ,
166
166
version = crate :: version( ) ,
167
167
encoding = session. encoding( ) ,
168
168
workspace_folders = session. workspace_root_folders( ) . collect:: <Vec <_>>( ) ,
169
169
config_files = session. config_file_paths( ) . collect:: <Vec <_>>( ) ,
170
- open_documents = session. open_documents ( ) ,
170
+ open_documents_len = session. open_documents_len ( ) ,
171
171
client_capabilities = session. resolved_client_capabilities( ) ,
172
172
) ?;
173
173
@@ -176,10 +176,11 @@ client_capabilities = {client_capabilities:#?}
176
176
writeln ! ( buffer, "Unable to take a snapshot of the document at {uri}" ) ?;
177
177
return Ok ( buffer) ;
178
178
} ;
179
+ let query = snapshot. query ( ) ;
179
180
180
181
writeln ! (
181
182
buffer,
182
- "Document :
183
+ "Open document :
183
184
uri = {uri}
184
185
kind = {kind}
185
186
version = {version}
@@ -193,10 +194,10 @@ config_path = {config_path:?}
193
194
DocumentKey :: NotebookCell ( _) => "NotebookCell" ,
194
195
DocumentKey :: Text ( _) => "Text" ,
195
196
} ,
196
- version = snapshot . query( ) . version( ) ,
197
+ version = query. version( ) ,
197
198
client_settings = snapshot. client_settings( ) ,
198
- config_path = snapshot . query( ) . settings( ) . path( ) ,
199
- settings = snapshot . query( ) . settings( ) ,
199
+ config_path = query. settings( ) . path( ) ,
200
+ settings = query. settings( ) ,
200
201
) ?;
201
202
} else {
202
203
writeln ! (
0 commit comments