Hong Jiarong
81cbee6458
fix: module import usage attribution
2025-12-16 19:55:27 +08:00
Hong Jiarong
420813f3f0
fix: dead-code quickfix for unused module import
2025-12-16 19:55:27 +08:00
Hong Jiarong
abb7d05b68
feat: add autofix to remove unused module declarations
2025-12-16 19:55:27 +08:00
Hong Jiarong
4c961ecbab
update snaps
2025-12-16 19:55:27 +08:00
Hong Jiarong
c398ef6316
lint: highlight entire unused let bindings and keep code actions working
2025-12-16 19:55:27 +08:00
Hong Jiarong
ef76937bb7
update tests' snaps
2025-12-16 19:55:27 +08:00
Hong Jiarong
dfec51b74e
refactor a bit
2025-12-16 19:55:27 +08:00
Hong Jiarong
731826ecf5
feat: Mark unused diagnostics with DiagnosticTag::UNNECESSARY and DiagnosticSeverity::HINT.
2025-12-16 19:55:27 +08:00
Hong Jiarong
f4fae9dd79
import show usage
2025-12-16 19:55:27 +08:00
Hong Jiarong
ac15de2aab
fmt
2025-12-16 19:55:27 +08:00
Hong Jiarong
fe073d8aee
import wildcard
2025-12-16 19:55:27 +08:00
Hong Jiarong
269816316a
can't replace unused function with placeholder _
2025-12-16 19:55:27 +08:00
Hong Jiarong
1287c95d84
update snap
2025-12-16 19:55:27 +08:00
Hong Jiarong
2682810389
clippy
2025-12-16 19:55:27 +08:00
Hong Jiarong
a5b4533bf7
clippy
2025-12-16 19:55:27 +08:00
Hong Jiarong
2f4b62deb6
refactor: streamline dead code analysis by removing unused functions and optimizing import usage computation
2025-12-16 19:55:27 +08:00
Hong Jiarong
9bace397fb
mod alias tmp fix
2025-12-16 19:55:27 +08:00
Hong Jiarong
843fbc3aaf
prevent .._ when rewrites spread bindings
2025-12-16 19:55:27 +08:00
Hong Jiarong
60295b62e3
module import
2025-12-16 19:55:27 +08:00
Hong Jiarong
9920bb4001
module import
2025-12-16 19:55:27 +08:00
Hong Jiarong
da660ad404
import items and its alias
2025-12-16 19:55:27 +08:00
Hong Jiarong
deb6d82772
simplify dead code checks and enhance diagnostic messages for unused symbols
2025-12-16 19:55:27 +08:00
Hong Jiarong
8c95904042
fix: hash tag
2025-12-16 19:55:27 +08:00
Hong Jiarong
ea1ec20253
feat: add snapshot_testing_with_snapshots function for enhanced snapshot testing
2025-12-16 19:55:27 +08:00
Hong Jiarong
5ee652a0a6
feat: enhance dead code handling with autofix actions for unused symbols
2025-12-16 19:55:27 +08:00
Hong Jiarong
c6dad907af
clippy
2025-12-16 19:55:27 +08:00
Hong Jiarong
14c3f19138
it's not tuple..
2025-12-16 19:55:27 +08:00
Hong Jiarong
ae073f0260
insta
2025-12-16 19:55:27 +08:00
Hong Jiarong
59ecc40bc4
feat: add test cases and snapshots for dead code detection in spread operator
2025-12-16 19:55:27 +08:00
Hong Jiarong
fb95df494c
feat: add snapshot for dead code detection in destructuring patterns
2025-12-16 19:55:27 +08:00
Hong Jiarong
e2ecccfbb0
feat: add test cases for dead code detection in destructuring patterns
2025-12-16 19:55:27 +08:00
Hong Jiarong
93fac9789b
feat: cross-module reference tracking
2025-12-16 19:55:27 +08:00
Hong Jiarong
32eb0b751c
feat: implement dead code detection and diagnostics for Typst
2025-12-16 19:55:26 +08:00
Hong Jiarong
d805281e3c
style: suppress unused_mut warning for hooks vector initialization
2025-12-16 19:55:12 +08:00
Hong Jiarong
c62159e1d6
docs: Add documentation comments to project hooks and refactor hook vector initialization.
2025-12-16 19:55:12 +08:00
Hong Jiarong
92aef00c16
refactor: Unify compile event handling with a new CompileHook trait, replacing individual handlers for diagnostics, linting, preview, and export.
2025-12-16 19:55:12 +08:00
Hong Jiarong
f35f25fd86
feat: Separate diagnostic handling into a dedicated DiagHook for compiler diagnostics and a new LintHook for lint-specific diagnostics.
2025-12-16 19:55:12 +08:00
Hong Jiarong
0b70b0a8a0
feat: split lint hook from compiler diagnostics
2025-12-16 19:55:12 +08:00
Hong Jiarong
49fb261a1a
refactor: add hook scaffolding
2025-12-16 19:55:12 +08:00
Hong Jiarong
fa443289d4
feat: add clear_diagnostics method to CompileHandlerImpl for better diagnostic management
2025-12-16 19:55:12 +08:00
Hong Jiarong
b1871fbfa3
feat: enhance diagnostics handling by introducing DiagKind and separating compiler/lint diagnostics
2025-12-16 19:55:12 +08:00
Myriad-Dreamin
0bfe655ada
build: bump world crates to v0.14.6-rc2 ( #2312 )
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
2025-12-16 11:37:50 +08:00
Myriad-Dreamin
506a97d495
fix: avoid duplicated @preview packages ( #2313 )
2025-12-16 08:11:10 +08:00
Hong Jiarong
0e334a2bfd
fix: change checkOnSave to check in .zed/settings.json ( #2314 )
...
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
To resolve warning `invalid config value: /checkOnSave: invalid type:
map, expected a boolean;`. See rust-lang/rust-analyzer#13799 .
2025-12-15 22:14:30 +08:00
Mikkelsej
ede7fcaed7
feat: add char count to vs code status bar ( #2308 )
...
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
I have added character counter to the vscode status bar with
`const formatString = statusBarFormatString()
.replace(/\{wordCount\}/g, `${words} ${plural("Word", words)}`)
.replace(/\{charCount\}/g, `${chars} ${plural("Character", chars)}`)
.replace(/\{pageCount\}/g, `${pages} ${plural("Page", pages)}`)
.replace(/\{fileName\}/g, fileNameWithoutExt);
`
in editors/vscode/src/ui-extends.ts, and modified
`en = "Set format string of the server status. For example,
`{compileStatusIcon}{wordCount} [{fileName}]` will format the status as
`$(check) 123 words [main]`. Valid placeholders are:\n\n-
`{compileStatusIcon}`: Icon indicating the compile status\n-
`{wordCount}`: Number of words in the document\n`{charCount}`: Number of
characters in the document\n- `{fileName}`: Name of the file being
compiled\n\nNote: The status bar will be hidden if the format string is
empty."
`
in locales/tinymist-vscode.toml
This small change should make the option charCount possible for the
statusbar in vscode requested in
https://github.com/Myriad-Dreamin/tinymist/issues/2307 and a nice to
have feature.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-14 10:46:43 +08:00
Myriad-Dreamin
ea824b521f
revert: fix: remove Clone trait bounds from diagnostics iterators ( #2136 ) ( #2138 )
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
2025-12-08 15:51:01 +08:00
Myriad-Dreamin
26f51f7a74
test: avoid test touching fs ( #2298 )
2025-12-08 14:15:37 +08:00
Myriad-Dreamin
0bc10c4152
feat: clear local package read cache ( #2299 )
2025-12-08 12:27:24 +08:00
Myriad-Dreamin
991add1a4a
feat: scan namespaces in package directories ( #2297 )
...
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
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 / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
This enables package completions in other namespaces like `@npm` or
`@some-org`
2025-12-08 06:44:21 +08:00
QuadnucYard
626c51ce4c
feat: store full package information and cache local packages ( #2291 )
...
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
from #2095
---------
Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-12-07 20:22:40 +08:00