mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-23 04:35:00 +00:00
feat: handle enters in list or enum items (#1442)
* test: add tests about `onEnter` * feat: handle enters in list or enum items
This commit is contained in:
parent
78b80d41e4
commit
f13b632ad2
19 changed files with 200 additions and 17 deletions
|
@ -109,7 +109,7 @@ mod tests {
|
|||
fn run(config: TestConfig) -> impl Fn(&mut LocalContext, PathBuf) {
|
||||
fn test(ctx: &mut LocalContext, id: TypstFileId) {
|
||||
let source = ctx.source_by_id(id).unwrap();
|
||||
let rng = find_test_range(&source);
|
||||
let rng = find_test_range_(&source);
|
||||
let text = source.text()[rng.clone()].to_string();
|
||||
|
||||
let docs = find_module_level_docs(&source).unwrap_or_default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue