diff options
Diffstat (limited to 'crates/vfs/src')
-rw-r--r-- | crates/vfs/src/file_set.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/vfs/src/file_set.rs b/crates/vfs/src/file_set.rs index e9196fcd2..9f11268ee 100644 --- a/crates/vfs/src/file_set.rs +++ b/crates/vfs/src/file_set.rs | |||
@@ -19,6 +19,9 @@ impl FileSet { | |||
19 | pub fn len(&self) -> usize { | 19 | pub fn len(&self) -> usize { |
20 | self.files.len() | 20 | self.files.len() |
21 | } | 21 | } |
22 | pub fn is_empty(&self) -> bool { | ||
23 | self.len() == 0 | ||
24 | } | ||
22 | pub fn resolve_path(&self, anchor: FileId, path: &str) -> Option<FileId> { | 25 | pub fn resolve_path(&self, anchor: FileId, path: &str) -> Option<FileId> { |
23 | let mut base = self.paths[&anchor].clone(); | 26 | let mut base = self.paths[&anchor].clone(); |
24 | base.pop(); | 27 | base.pop(); |