@@ -39,7 +39,7 @@ impl LspServer {
39
39
/// When the client sends a didChangeConfiguration notification, we need to parse the received JSON.
40
40
#[ tracing:: instrument(
41
41
name = "Parsing config from client" ,
42
- skip( self ) ,
42
+ skip( self , value ) ,
43
43
fields( options = %value)
44
44
) ]
45
45
async fn parse_config_from_client (
@@ -104,7 +104,7 @@ impl LspServer {
104
104
105
105
#[ tracing:: instrument(
106
106
name="Publishing diagnostics" ,
107
- skip( self ) ,
107
+ skip( self , uri ) ,
108
108
fields( %uri)
109
109
) ]
110
110
async fn publish_diagnostics ( & self , mut uri : Url ) {
@@ -138,7 +138,7 @@ impl LspServer {
138
138
139
139
#[ tracing:: instrument(
140
140
name="Publishing diagnostics via Debouncer" ,
141
- skip( self ) ,
141
+ skip( self , uri ) ,
142
142
fields( %uri)
143
143
) ]
144
144
async fn publish_diagnostics_debounced ( & self , mut uri : Url ) {
@@ -290,8 +290,8 @@ impl LanguageServer for LspServer {
290
290
}
291
291
292
292
#[ tracing:: instrument(
293
- name= "textDocument/didOpen" ,
294
- skip( self ) ,
293
+ name = "textDocument/didOpen" ,
294
+ skip( self , params ) ,
295
295
fields(
296
296
uri = %params. text_document. uri
297
297
)
@@ -318,7 +318,7 @@ impl LanguageServer for LspServer {
318
318
319
319
#[ tracing:: instrument(
320
320
name= "textDocument/didSave" ,
321
- skip( self ) ,
321
+ skip( self , params ) ,
322
322
fields(
323
323
uri = %params. text_document. uri
324
324
)
@@ -333,13 +333,16 @@ impl LanguageServer for LspServer {
333
333
let changed_urls = self . session . recompute_and_get_changed_files ( ) . await ;
334
334
for url in changed_urls {
335
335
let url = Url :: from_file_path ( url. as_path ( ) ) . expect ( "Expected absolute File Path" ) ;
336
+
337
+ tracing:: info!( "publishing diagnostics: {}" , url) ;
338
+
336
339
self . publish_diagnostics ( url) . await ;
337
340
}
338
341
}
339
342
340
343
#[ tracing:: instrument(
341
344
name= "textDocument/didChange" ,
342
- skip( self ) ,
345
+ skip( self , params ) ,
343
346
fields(
344
347
uri = %params. text_document. uri
345
348
)
@@ -348,12 +351,14 @@ impl LanguageServer for LspServer {
348
351
let mut uri = params. text_document . uri ;
349
352
normalize_uri ( & mut uri) ;
350
353
354
+ tracing:: info!( "{}" , uri) ;
355
+
351
356
self . publish_diagnostics_debounced ( uri) . await ;
352
357
}
353
358
354
359
#[ tracing:: instrument(
355
360
name= "textDocument/didClose" ,
356
- skip( self ) ,
361
+ skip( self , params ) ,
357
362
fields(
358
363
uri = %params. text_document. uri
359
364
)
@@ -368,7 +373,7 @@ impl LanguageServer for LspServer {
368
373
369
374
#[ tracing:: instrument(
370
375
name= "textDocument/codeAction" ,
371
- skip( self ) ,
376
+ skip( self , params ) ,
372
377
fields(
373
378
uri = %params. text_document. uri
374
379
)
@@ -393,7 +398,7 @@ impl LanguageServer for LspServer {
393
398
394
399
#[ tracing:: instrument(
395
400
name= "inlayHint/resolve" ,
396
- skip( self ) ,
401
+ skip( self , params ) ,
397
402
fields(
398
403
uri = %params. text_document. uri
399
404
)
@@ -412,7 +417,7 @@ impl LanguageServer for LspServer {
412
417
413
418
#[ tracing:: instrument(
414
419
name= "textDocument/completion" ,
415
- skip( self ) ,
420
+ skip( self , params ) ,
416
421
fields(
417
422
uri = %params. text_document_position. text_document. uri
418
423
)
@@ -434,7 +439,7 @@ impl LanguageServer for LspServer {
434
439
435
440
#[ tracing:: instrument(
436
441
name= "textDocument/hover" ,
437
- skip( self ) ,
442
+ skip( self , params ) ,
438
443
fields(
439
444
uri = %params. text_document_position_params. text_document. uri
440
445
)
0 commit comments