mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 20:35:20 +00:00
refactor: complete paths without hacking (#971)
* refactor: complete paths without hacking * dev: move code after refactor
This commit is contained in:
parent
ab234634a9
commit
969cc6d339
7 changed files with 165 additions and 181 deletions
|
|
@ -333,9 +333,11 @@ impl LocalContext {
|
|||
/// Get all the source files in the workspace.
|
||||
pub fn source_files(&self) -> &Vec<TypstFileId> {
|
||||
self.caches.root_files.get_or_init(|| {
|
||||
self.completion_files(&PathPreference::Source)
|
||||
.copied()
|
||||
.collect()
|
||||
self.completion_files(&PathPreference::Source {
|
||||
allow_package: false,
|
||||
})
|
||||
.copied()
|
||||
.collect()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue