pr 08 lsp

This commit is contained in:
2026-03-24 13:40:29 +00:00
parent 912b9b0075
commit 06b49cf433
10 changed files with 448 additions and 98 deletions
+5
View File
@@ -63,6 +63,11 @@ impl FileDB {
pub fn line_index(&self, id: FileId) -> &LineIndex {
&self.files[id.0 as usize].line_index
}
/// Returns a list of all known file IDs in insertion order.
pub fn all_files(&self) -> Vec<FileId> {
(0..self.files.len()).map(|i| FileId(i as u32)).collect()
}
}
impl LineIndex {