mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-07-07 21:25:32 +00:00
Clear text when closing doc to reduce mem usage
This commit is contained in:
parent
befbd6f412
commit
757928d9fc
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ pub fn clean_unreachable(db: &mut dyn Db, workspace: Workspace) {
|
|||
if reachable.contains(document) {
|
||||
true
|
||||
} else {
|
||||
document.set_text(db).to(String::new());
|
||||
let uri = document.location(db).uri(db);
|
||||
log::debug!("Cleaning up unreachable document: {uri}");
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue