refactor: combine typst-preview and tinymist compiler (#337)

* refactor: combine typst-preview and tinymist compiler

* dev: update link

* fix: bad changes

* dev: sync snapshot compiler
This commit is contained in:
Myriad-Dreamin 2024-06-22 15:06:42 +08:00 committed by GitHub
parent b265dd49d6
commit 7d65829ed7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 397 additions and 418 deletions

View file

@ -36,11 +36,11 @@ impl SemanticRequest for SymbolRequest {
let mut symbols = vec![];
ctx.resources.iter_dependencies(&mut |path, _| {
let Ok(source) = ctx.source_by_path(path) else {
ctx.resources.iter_dependencies(&mut |path| {
let Ok(source) = ctx.source_by_path(&path) else {
return;
};
let uri = path_to_url(path).unwrap();
let uri = path_to_url(&path).unwrap();
let res = get_lexical_hierarchy(source.clone(), LexicalScopeKind::Symbol).and_then(
|symbols| {
self.pattern.as_ref().map(|pattern| {