Joseph Liu
731cd23ec8
dev: fix lint warnings introduced by #2062 ( #2096 )
...
tinymist::auto_tag / auto-tag (push) Has been cancelled
tinymist::ci / Duplicate Actions Detection (push) Has been cancelled
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Has been cancelled
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Has been cancelled
tinymist::ci / prepare-build (push) Has been cancelled
tinymist::gh_pages / build-gh-pages (push) Has been cancelled
tinymist::ci / announce (push) Has been cancelled
tinymist::ci / build (push) Has been cancelled
> Hm. Sorry about the lint failures here, they slipped my attention
locally since they show up as warnings, not errors, in my editor. I'm
happy to put a PR fixing them later unless you get to it first.
>
> Not too sure how to deal with the unused DiagWorker::check method,
since it is used, just in a test-only module. We can certainly mark it
as #[cfg(test)] but that feels a little nasty.
https://github.com/Myriad-Dreamin/tinymist/pull/2062#issuecomment-3237812684
I ended up inlining the logic of `DiagWorker::check` into the test.
2025-08-30 10:50:23 +08:00
Joseph Liu
4324f8fd70
feat: offer quickfix to add spaces separating letters in unknown math var ( #2062 )
...
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
Examples:
| Input | Suggested fix |
| -- | -- |
| `$xyz$` | `$x y z$` |
| `$a_ij$` | `$a_(i j)$` |
| `$a_(ij)$` | `$a_(i j)$` |
| `$xy/z$` | `$(x y)/z$` |
If the unknown identifier appears as a subscript or as the
numerator/denominator of a fraction, we parenthesize the suggested fix.
For example, `a_ij` turns into `a_(i j)`, not `a_i j`, because the
latter is unlikely to be what the user intended.
2025-08-30 01:47:51 +08:00
Myriad-Dreamin
647cda29a0
dev: split test functions for multiple crates ( #1695 )
...
* dev: split test functions for multiple crates
* build: update cargo.lock
* fix: compile error
2025-04-30 19:01:29 +08:00
Myriad-Dreamin
3d6c712565
feat: pass world to linter ( #1650 )
2025-04-14 21:37:29 +08:00
Myriad-Dreamin
4265bc25bc
feat: simple lint types comparing with strings ( #1643 )
...
* feat: simple lint types comparing with strings
* dev: edit message
* fix: message
2025-04-10 20:02:56 +08:00
Myriad-Dreamin
23f10a2648
feat: lint ignored statements before break/continue/return ( #1637 )
...
* feat: impl it
* g
* g2
* feat: add tests
* fix: snapshot
2025-04-09 18:17:46 +08:00
Myriad-Dreamin
6cf7739fb6
feat: feed more information to linter ( #1642 )
...
* feat: move expr struct to common crate
* feat: feed more information to linter
2025-04-09 16:57:33 +08:00
Myriad-Dreamin
054d3aecc0
refactor: prepare for linting on syntaxes ( #1640 )
...
* refactor: for query
* refactor: for diag
* feat: lazy hash expr info
* feat: hash resolves
* fix: update snapshot
2025-04-09 04:10:47 +08:00
Myriad-Dreamin
d6bce89e68
feat: lint on bug-like show/set rules ( #1634 )
...
* feat: init linter
* feat: init structure
* feat: init tests
* feat: warn on bad set rules
* feat: refactor struct
* feat: run check
* chore: update message
* chore: add hints
2025-04-08 07:36:03 +08:00
Myriad-Dreamin
72e33e461d
refactor: remove once_cell use from tinymist ( #1632 )
...
* refactor: remove `once_cell` use from tinymist
* feat: remove more
2025-04-08 02:11:44 +08:00
QuadnucYard
7b74506dcc
feat: remove extra linebreak in diagnostic message ( #1599 )
2025-03-30 21:03:44 +08:00
7mile
8d9a8f8bed
feat: fledge diagnostic hint patterns by updating 2 refiners ( #1544 )
...
* feat: support more diagnostic hint patterns about typst v0.13 deprecation
* feat: add out of root hint diagnostic refiner
* optimize multi-pattern search with `RegexSet`
* add "cannot spread content"
* fix test
* Revert "add "cannot spread content""
This reverts commit 7d6c981413 .
2025-03-20 14:30:35 +08:00
7mile
57ce935f54
feat: add diagnostics refiner to provide extra hints from tinymist side ( #1539 )
...
* feat: add diagnostics refiner to provide extra information from tinymist side
* apply naming suggestion
* add note for caching
* fix the migration guide url
* reorganize tests
* fix clippy
2025-03-19 16:19:42 +08:00
Myriad-Dreamin
85cb9096d2
perf: scatter-gather the editor diagnostics ( #1246 )
2025-02-02 14:56:55 +08:00
Myriad-Dreamin
56714675b7
feat: encode and use workspace information into PackageSpec ( #1187 )
...
* feat: remove an unused API
* feat: encode workspace information into `PackageSpec`
* feat: remove unused real_path
* feat: remove unused mtime
* feat: add ResolveAccessModel
* feat: implement id overlay semantics
* feat: remove mtime checking in overlay model
* feat: remove mtime checking in notify model
* feat: format ids
* fix: cases
* feat: resolve root by world
* dev: add untitled root
* fix: warnings
* fix: a wrong usage
* fix: snapshots
* fix: tests
2025-01-19 11:51:00 +08:00
Myriad-Dreamin
6180e343e0
feat: move world implementation ( #1183 )
...
* feat: move world implementation
* dev: remove vector ir
* fix: errors
* fix: clippy
* fix: don't build world in web
* fix: unused patches
* fix: fmt
* fix: docs example
* fix: doc examples
2025-01-19 08:25:35 +08:00
Myriad-Dreamin
497a1e0aea
refactor: simplify and document lsp_typst_boundary crate ( #1049 )
2024-12-22 11:21:04 +08:00
Myriad-Dreamin
61f2273e2e
dev: convert diagnostics without analysis snapshot ( #805 )
2024-11-13 23:51:48 +08:00
Myriad-Dreamin
8f3566366e
refactor: refactor hover, analysis/global, and docs crates ( #755 )
...
* dev: refactor hover.rs
* refactor refactor AnalysisContext
* refactor: refactor docs crate
2024-10-31 10:07:31 +08:00
Myriad-Dreamin
1d49e110e2
dev: cache expression information correctly ( #736 )
...
* dev: cache expression information correctly
* rev
2024-10-27 20:20:59 +08:00
Myriad-Dreamin
81ebc8a635
feat: implement expression checker ( #714 )
...
* feat: implements expression checker
* dev: resolve information
* dev: delete def_use
* stage
* stage
* stage
* stage concurrent
* stage concurrent
* dev: better concurrency
* dev: final constant evaluation improvement
* dev: change reference site
* dev: handle comments
* dev: remove indirect import structure
* dev: adjust linked_def impl
* dev: finalize goto definition impl
* dev: replace all old import and def_use analyses with expr analysis
* dev: update expr_of snapshots
* dev: split def/expr, refactor definition
* dev: more consistent definition solver
* dev: rename definition crate
* dev: references work again
* dev: resolve root decl
* dev: resolve root decl
* dev: resolve global definitions
* dev: resolve tokens with world
* feat: render semantic tokens with expression information
* dev: loop detection
* dev: recover type checking
* dev: recover more type checking
* dev: refactor analysis context
* fix: process case of spread left
* dev: label inference
* dev: recover more signature checking
* dev: recover more ident reference checking
* dev: pass all tests
* Revert "dev: dirty changes"
This reverts commit 9ae2dacd0c96851e088feea76c61c184a1cf9722.
* test: update snapshot
* fix: bad cached signatures
* fix: slash problem
2024-10-25 23:52:11 +08:00
Myriad-Dreamin
6fcad1c1c7
feat: prepare for parallelizing lsp requests ( #342 )
...
* feat: migrate steal_sync to snapshot_sync
* feat: correctly make world/analysis snapshot
* very rayon
* dev: recover async lsp request
* gg
* dev: pin
* fix: make server stable
* dev: disable concurrent server by default
* dev: very sync
2024-06-26 10:37:57 +08:00
Myriad-Dreamin
e2b7bc4b56
refactor: introduce uri_for_id and deref_syntax_at ( #267 )
...
* dev: add documentation
* refactor: introduce uri_for_id and deref_syntax_at
2024-05-09 12:32:20 +08:00
QuarticCat
ebed95cbcd
fix: improve release profile & fix typos ( #177 )
...
* dev: split a gh-release profile to accelerate development
* fix: many typos
* fix: miri warnings
* fix: update fixtures
2024-04-10 11:34:18 +08:00
Myriad-Dreamin
529b422189
feat: support untitled url scheme for unsaved documents ( #120 )
2024-03-29 15:26:46 +08:00
Myriad-Dreamin
e649ad308f
refactor: tidy up compiler server/client actors ( #100 )
...
* refactor: split construct/preview code
* refactor: clean server-client actors
* fix: infinite loop
* fix: compile error
2024-03-26 11:15:32 +08:00
Myriad-Dreamin
37982a6870
fix: error tolerance on external paths ( #96 )
2024-03-26 10:54:26 +08:00
Myriad-Dreamin
76b4e91046
feat: allow running server with loading font once and on rootless files ( #94 )
...
* dev: change system config
* docs: update config doc
* dev: clean up tightly coupled world
* dev: load font once
* docs: add more comments to tinymist-query
* dev: merge compiler layers
* feat: allow run lsp on rootless files
* build: bump ts
* fix: workspace dep
* build: bump preview
* dev: correctly check inactive state
* fix: weird cargo default features
2024-03-26 10:33:56 +08:00
Myriad-Dreamin
cc1f418423
dev: reduce a bundle of ts usage in query crate ( #72 )
2024-03-18 23:00:27 +08:00
Myriad-Dreamin
2d2857e6f3
docs: refactor and documenting analyzer code ( #44 )
...
* dev: refactor and documenting analyzer code
* dev: documenting some lsp api
2024-03-16 02:54:56 +08:00
Myriad-Dreamin
505164f210
dev: update comment
2024-03-09 23:41:02 +08:00
Myriad-Dreamin
964def25a9
fix: don't panic on bad node range
2024-03-08 21:13:22 +08:00
Myriad-Dreamin
9af8eb4b52
feat: create query crate
2024-03-07 13:35:45 +08:00