MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / did_close

Method did_close

src/server.rs:522–541  ·  view source on GitHub ↗
(&self, params: DidCloseTextDocumentParams)

Source from the content-addressed store, hash-verified

520 }
521
522 async fn did_close(&self, params: DidCloseTextDocumentParams) {
523 let uri = params.text_document.uri.to_string();
524
525 self.open_files.write().remove(&uri);
526
527 // Clean up Blade preprocessor state for the closed file.
528 if self.is_blade_file(&uri) {
529 self.blade_virtual_content.write().remove(&uri);
530 self.blade_source_maps.write().remove(&uri);
531 self.blade_uris.write().remove(&uri);
532 }
533
534 self.clear_file_maps(&uri);
535
536 // Clear diagnostics so stale warnings don't linger after the file is closed
537 self.clear_diagnostics_for_file(&uri).await;
538
539 self.log(MessageType::INFO, format!("Closed file: {}", uri))
540 .await;
541 }
542
543 async fn goto_definition(
544 &self,

Calls 6

removeMethod · 0.80
writeMethod · 0.80
is_blade_fileMethod · 0.80
clear_file_mapsMethod · 0.80
logMethod · 0.80