Commit graph

1313 commits

Author SHA1 Message Date
Myriad-Dreamin
979e0b2a55
fix: bad root change cause incorrect vfs cache frequently (#1661) 2025-04-16 12:54:34 +08:00
Myriad-Dreamin
2709aaf429
feat: allow to disable lint or lint on save (#1658)
* feat: allow to disable lint or lint on save

* fix: description
2025-04-16 03:15:56 +08:00
Myriad-Dreamin
39d13c83f6
refactor: simplify world font impl and add docs (#1645)
* fix: remove unnecessary &mut in FontResolverImpl::append_font()

* refactor: better readablity in FontResolverImpl::rebuild()

* feat: FontResovlerImpl::clone_and_rebuild()

Change FontSlot to store Arc to QueryRef<Font, FontLoader>, so we can
clone FontSlot and share the cached loaded font between different slots.

Since CompilerUniverse only holds a immutable Arc to FontResovlerImpl,
adding clone_and_rebuild method allow us to append and rebuild without
mutable access to FontResovlerImpl.

* refactor: remove partial_book and modify methods from FontResolverImpl

partial_book is removed from FontResolverImpl, all the modifying methods
are also removed.
new method get_fonts and new_with_fonts are added.
If you want to modify fonts, you can get all fonts and modify them, then
call new_with_fonts to create a new FontResolverImpl.

* refactor: SystemFontSearch, BrowserFontSearch

- Both font searcher now is just a wrapper for Vec<(FontInfo,
  FontSlot)>, typst::FontBook will be built when converting into
  FontResolverImpl.

- Provide a method with_fonts_mut() so user can get a direct mutable
  access to the under lying fonts vector to do any changes.

- Support searcher -> resolver and resolver -> searcher conversion.

* refactor: api change to biulder pattern

Method new_with_resolver() is added since CompilerUniverse only holds
Arc reference to resolver, and we can't move it out.

* fix: add fontdb::Database to SystemFontSearcher

Store fonts info in db, load them in bulk when calling flush()

* chore: merge `FontResolverImpl` and `TinymistFontResolver`

* feat: remove font profile feature

* feat: remove project font

* docs: comment the font resolver trait

* docs: comment the font slot struct

* docs: comment the crate

* test: move system tests

* dev: clean resolver

* dev: clean searchers

* dev: clean par iters

* feat: enrich memory font resolver

* todo: useless reuse

* dev: remove reuse api

* dev: build font book in `fn build`

* fix: make clippy happy

* fix: bad use

---------

Co-authored-by: c0per <60544162+c0per@users.noreply.github.com>
2025-04-15 22:23:13 +08:00
Kilian
031b56205b
feat: add reasonable default value for setting formatterMode (#1655) 2025-04-15 22:22:52 +08:00
Myriad-Dreamin
3d6c712565
feat: pass world to linter (#1650) 2025-04-14 21:37:29 +08:00
Wenzhuo Liu
9c98876dfb
chore: update typstyle-core version to 0.13.3 (#1651) 2025-04-14 21:04:19 +08:00
Wenzhuo Liu
58ec6ab1e1
feat(lint): add warning for vf font (#1649)
* feat(lint): add warning for vf font

* feat: detect font object

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-04-12 20:55:39 +08:00
zica
1cd566aedc
fix: in preview, click on empty area now clears selection (#1644)
also fix selection disappears temporarily while dragging
2025-04-12 03:46:55 +08:00
QuadnucYard
a7a22c0d70
feat: show rendered bibliography in bib hover and improve label hover (#1611)
* feat: show rendered bibliography in citation details

* adjust code and revert changes to completions

* refactor: refactor a bit

* refactor: refactor two bit

* feat: improve hover docs a bit

* test: add hover tests for label and ref

* test: add html tests

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-04-11 17:29:03 +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
fcb060280d
fix: bad route to reference pages (#1641)
* test: add tests

* fix: bad route
2025-04-09 05:08:47 +08:00
Patrick Dewey
5c6d9a5dee
docs: Update Neovim config to use non-blocking system call (#1607)
* doc: Update Neovim config to use non-blocking system call

* docs: Update Neovim config to use non-blocking system call--mention issue in comment on older versions

* docs: turn comments out of code block

* fix: word

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-04-09 04:35:23 +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
01afa463f4
fix: don't highlight breaks in contextual (#1635) 2025-04-08 11:55:40 +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
ac506dcc31
refactor: move expr and ty defs to analysis crate (#1633) 2025-04-08 05:50:55 +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
Myriad-Dreamin
769fc93df9
fix: remove system time deps from crates (#1621)
* fix: remove system time deps from crates

* fix: remove system time deps from crates

* fix: smater feature gate

* docs: add some todos

* Update time.rs

* Update Cargo.toml

* build: remove hard dep chrono
2025-04-08 01:46:05 +08:00
Myriad-Dreamin
35b718452e
feat: scroll or kill all preview panels (#1451)
* feat: scroll or kill all preview panels

* feat: implement it

* docs: update comment
2025-04-07 22:04:55 +08:00
Myriad-Dreamin
d3bcef5fd9
docs: update localization and maintainers section (#1629)
* docs: update localization and maintainers section

* build: generate docs
2025-04-06 22:18:50 +08:00
Myriad-Dreamin
e3f41f81ef
feat: check field of literals (#1619)
* feat: check field of literals

* test: add more tests

* test: update snapshot
2025-04-06 20:33:26 +08:00
Myriad-Dreamin
7f5bb5dc45
feat: resolve full ranges of bib items (#1627)
* feat: resolve full ranges of bib items

* chore: update todo
2025-04-04 17:06:09 +08:00
Myriad-Dreamin
04c013f3a4
dev: add Definition::file_id (#1626) 2025-04-04 16:08:38 +08:00
Myriad-Dreamin
ec5be5d2b0
fix: sync-ls doesn't have target feature (#1625) 2025-04-04 15:34:15 +08:00
Myriad-Dreamin
bceb93b944
fix: correct name_range impl (#1623) 2025-04-04 06:25:21 +08:00
Myriad-Dreamin
d7424abed8
docs: add sponsoring section to readme (#1620)
* docs: add sponsoring section to readme

* build: generate readme

* docs: wording

* docs: wording also mention contributors

* docs: wording also mention contributors
2025-04-02 15:20:53 +08:00
Myriad-Dreamin
59fda809d5
feat: provide AST view (#1617)
* feat: provide AST view

* test: update snapshot
2025-04-02 13:24:35 +08:00
Myriad-Dreamin
195b717eda
feat: math quote are not strings (#1618) 2025-04-02 12:32:02 +08:00
Myriad-Dreamin
d0c5b28d26
feat: cache yarn packages (#1615) 2025-04-02 10:19:53 +08:00
Myriad-Dreamin
677983075d
build: hard disable targets to build on CI (#1613)
* build: hard disable targets to build on CI

* feat: remove x86 darwin e2e
2025-04-01 17:58:50 +08:00
Myriad-Dreamin
03a30f241e
feat: reduce deps of the tests crate (#1612)
* feat: reduce deps of the tests crate

* feat: reduce deps of the tests crate (2)
2025-04-01 16:42:25 +08:00
Myriad-Dreamin
64044ea514
feat: use html export to render docs (#1610)
* feat: use html export to render docs

* feat: merge page
2025-03-31 22:32:04 +08:00
Myriad-Dreamin
b97335c0ef
fix: order to publish crates (#1609)
* fix: order to publish crates

* fix: bad version
2025-03-31 17:03:26 +08:00
Myriad-Dreamin
71116758ef
build: bump world crates to 0.13.12-rc1 (#1608)
* refactor: move `debug_loc`

* build: fix rev

* build: bump tinymist inner version

* build: bump tinymist world version

* build: bump world crates to 0.13.12-rc1

* fix: used bad patch

* fix: clippy errors
2025-03-31 16:01:51 +08:00
Myriad-Dreamin
4844419bd8
fix: tolerate the fact that plugin functions don't have params (#1605) 2025-03-31 10:24:48 +08:00
QuadnucYard
daf0c5381b
build: bump typstyle to 0.13.2 (#1600)
* build: bump typstyle to 0.13.2

* Update CHANGELOG.md

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-03-30 23:21:37 +08:00
Luyan Zhou
e6c0a9b10d
feat: fold list and enum items (#1598)
* feat: fold list and enum item content

* chore: format code

* feat: add new fixtures for folding range tests with list and enum structures

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-03-30 22:17:27 +08:00
Myriad-Dreamin
53ceba2801
refactor: bib worker (#1585)
* refactor: bib worker

* fix: stupid slash
2025-03-30 21:47:06 +08:00
QuadnucYard
7b74506dcc
feat: remove extra linebreak in diagnostic message (#1599) 2025-03-30 21:03:44 +08:00
Myriad-Dreamin
d49695b884
fix: disable all diagnostics testing on windows (#1603) 2025-03-30 21:03:09 +08:00
Myriad-Dreamin
96e0f0dfe6
fix: skip diagnostics test on windows (#1602)
* fix: skip diagnostics test on windows

* fix: again
2025-03-30 19:06:56 +08:00
zica
9376b89b08
fix: allow drag preview horizontally (#1597) 2025-03-28 20:14:34 +08:00
Myriad-Dreamin
90f9949f8c
feat: support --feature and --pdf-standard. (#1596) 2025-03-28 17:42:03 +08:00
Myriad-Dreamin
e443c3172b
feat: build pdf docs for all platforms (#1592)
* feat: build pdf docs for all platforms

* fix: name

* feat: others

* feat: remove dispatch trigger

* fix: checkout

* fix: workaround the bug

* feat: build one for all

* feat: build one for all

* feat: build one for all 2

* fix: bundle syntaxes

* fix: orders

* fix: too slow windows
2025-03-27 18:43:13 +08:00
Myriad-Dreamin
c33542739c
feat: hot update editor actor config (#1584)
* feat: hot update editor actor config

* feat: apply update
2025-03-27 17:05:18 +08:00
Myriad-Dreamin
8c4bfe21c7
feat: run e2e tests on major platforms (#1590)
* feat: run e2e tests on major platforms

* fix: conflict snapshot
2025-03-27 11:33:25 +08:00
Myriad-Dreamin
c234e86070
feat(ci): vscode extensions use binaries built by cargo-dist (#1560)
* build: rename filename of vscode workflow

* build: archive

* dev: permissions

* fix: cache name

* fix: ci file name

* edit

* edit2

* fix: release crates rule

* fix: announce permission

* fix: publish permission

* fix: errors

* fix: ???

* fix: cargo test

* chore: rename

* feat: upgrade ubuntu version

* feat: upgrade cargo-dist

* feat: upgrade cargo-dist

* feat: pr run with tag be `''`

* feat: upload

* feat: upgrade cargo-dist??

* feat: fix workflow

* fix: announce deps

* fix: permission

* fix: dir to download

* fix: unpack

* fix: unpack 2

* fix: list command

* fix: executable name

* fix: executable name 2

* fix: executable name 3

* fix: executable name 4

* fix: remove the macos e2e test challenge

* fix: prebuilt location

* fix: compile arguments
2025-03-27 04:20:58 +08:00
Myriad-Dreamin
41f8881e8e
fix: correct jump_from_cursor and add tests (#1589)
* test: add tests to jump from cursor

* fix: fuzzy search

* fix: stupid filter

* docs: add comments

* docs: add some todos

* fix: comment wording

* dev: add a todo

* dev: edit a todo

* fix: comment
2025-03-27 01:44:49 +08:00