Commit graph

1517 commits

Author SHA1 Message Date
Myriad-Dreamin
27893b5302
revert: "fix(ci): detect create intead of push (#1962)" (#1994)
Some checks are pending
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
Reverts Myriad-Dreamin/tinymist#1962
2025-08-06 00:56:53 +08:00
Myriad-Dreamin
451a10869a
build: bump msrv to 1.88 (#1993)
Co-authored-by: paran3xus <paran3xus007@gmail.com>
2025-08-05 23:18:16 +08:00
Myriad-Dreamin
ce43c4bbd9
build: bump version to 0.13.20 (#1999)
+tag v0.13.20
2025-08-05 22:53:53 +08:00
Myriad-Dreamin
c08b63bd3d
fix: changelog (#1992)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
2025-08-05 14:18:24 +08:00
Myriad-Dreamin
615f834822
build: bump version to 0.13.20-rc1 (#1989)
+tag v0.13.20-rc1
2025-08-05 12:12:11 +08:00
Myriad-Dreamin
d7fa34f2fe
fix: ignore outdated signal (#1991) 2025-08-05 11:04:07 +08:00
Myriad-Dreamin
a2f8928066
fix: clean up signal when revision is updated (#1990)
Forgot to clean up signal when evision is updated

```
// The signal must be reset to the current one.
*n_signal = art.snap.signal;
```
2025-08-05 10:53:23 +08:00
Myriad-Dreamin
fb1c8b3b35
feat: make configuration items null-safe (#1988)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
When passing configuration items with null values, the default
configurations are used. Note: I don't ensure this to be always true,
some configuration items may have different non-default behaviors when
accepting a null value now or in future. The `deserialize_null_default`
is taken from https://github.com/serde-rs/serde/issues/1098.

Configuration parsing changes:
+ some configurations only accepting boolean now coerce null to `false`
(default).
+ some configurations only accepting an object now coerce null to
default.
+ The `tinymist.preview.invertColors` now now coerces null to `"never"`
(default).
2025-08-05 10:31:52 +08:00
ParaN3xus
f33f612f43
feat: maintain workflows for nightly releases (#1986) 2025-08-05 10:27:44 +08:00
Luyan Zhou
2667fdb91b
fix: set VS Code default configuration for invertColors to "never" (#1987)
Since #1807 , VS Code pops up a warning when starting tinymist: 
<img width="464" height="162" alt="image"
src="https://github.com/user-attachments/assets/aeefac88-5515-4dcd-be52-82e402db74c5"
/>

Because the default value was not set, it's trying to deserialize a
`null`. I complete the corresponding configuration entry in the VS Code
extension's package.json and package.other.json with default value
"never".
2025-08-05 09:59:57 +08:00
Wenzhuo Liu
5c686f4641
build: bump typstyle to v0.13.17 (#1979)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
2025-08-04 07:54:48 +08:00
Myriad-Dreamin
24f4900025
build: bump version to 0.13.18 (#1980)
+tag v0.13.18
2025-08-04 03:25:40 +08:00
Myriad-Dreamin
959174e236
build: update cargo hash in the flake.nix (#1976)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
+tag v0.13.18-rc2
2025-08-03 15:05:16 +08:00
Myriad-Dreamin
700745e46e
build: bump version to 0.13.18-rc2 (#1975) 2025-08-03 14:04:21 +08:00
Myriad-Dreamin
1eb1828d92
fix: properly handle v-prefix in release tag to announce (#1971) 2025-08-03 10:52:15 +08:00
Myriad-Dreamin
6406870391
build: bump version to 0.13.18-rc1 (#1969)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
2025-08-02 22:31:40 +08:00
Myriad-Dreamin
55228c76a6
feat: update links in vscode docs (#1967) 2025-08-02 21:45:58 +08:00
Myriad-Dreamin
e8e6df319a
test: add tests about workspace/symbol requests (#1966) 2025-08-02 21:45:42 +08:00
Myriad-Dreamin
ab774377f7
feat: make symbol queries infallible (#1964) 2025-08-02 20:50:14 +08:00
ParaN3xus
2ecdbd42a5
fix: use proper commit hash when generating nightly release changelog (#1965) 2025-08-02 20:39:44 +08:00
Myriad-Dreamin
9e96aefa0e
fix(ci): detect create intead of push (#1962)
According to https://github.com/actions/runner/issues/1007, the push
events was not created when bot creating tags.
2025-08-02 19:51:23 +08:00
ParaN3xus
bf30b5458a
fix: do full cargo update when releasing nightly (#1961) 2025-08-02 19:21:19 +08:00
Myriad-Dreamin
e8a72a5fe3
fix: remove some compatiblility to preview configuration and fix tinymist.preview.refresh (#1807)
Some checks failed
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
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::ci / announce (push) Has been cancelled
tinymist::ci / build (push) Has been cancelled
`tinymist.preview.refresh` should work.
- [x] ensure that `--refresh-style` is respected
- [x] not need to pass `--refresh-style` in
extension/src/features/preview.ts
- [x] ensure configuration to work
2025-08-02 03:55:06 +08:00
ParaN3xus
cf0fb1c00d
fix: several fixes to auto release (#1959)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / build (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 / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
+ use `GITHUB_TOKEN` to checkout tinymist in `release-nightly.yml`.
Therefore, GitHub Actions should be granted write permission.
+ tag directives must start from the line start.
+ use the same bot name and email in actions.
2025-08-01 16:08:08 +08:00
Myriad-Dreamin
f118d81464
fix: run ci on nightly branch (#1955)
Some checks are pending
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
2025-07-31 22:25:30 +08:00
Myriad-Dreamin
cf82fc78c2
feat: add rust and yarn to nix devShell (#1953)
by default, we assume people would like develop the language server and
editor tools. The building of tinymist-cli is moved to the neovim shell.
2025-07-31 22:22:32 +08:00
ParaN3xus
3aa9c9def0
feat: create git tag automatically to trigger releases (#1951)
This PR introduces multiple GitHub Actions to automate the release
procedure. In brief, it contains:

- **For nightly releases**: A fully automated GitHub Action that updates
dependencies (including dependencies of typstyle, typst.ts, and
typst-ansi-hl), releases nightly RC (aka canary version in the action
script) and nightly builds, along with its helper script (which can also
be useful for manually updating versions).

- **For stable releases**: Two GitHub Actions, one that detects newly
opened PRs containing tagging directives (`+Tag vx.y.z-rcw`) and leaves
comments, and another that detects merged tagging PRs and performs the
actual tagging.


Examples:
- Nightly release:
4708018995
- Stable release: ParaN3xus/tinymist#1, ParaN3xus/tinymist#2

Extra work needed to merge this PR:
- [ ] Remove all `nightly/*` branches and create `nightly` branch
- [ ] Add `NIGHTLY_REPO_TOKEN` secret to this repo

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-07-31 20:59:11 +08:00
Myriad-Dreamin
9f7c21bb0c
fix: remove explicit requirement of secrets (#1952) 2025-07-31 20:13:57 +08:00
Myriad-Dreamin
7e925890fa
feat: build and bundle tinymist wasm into web extension (#1945)
Some checks are pending
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
2025-07-31 01:45:25 +08:00
Myriad-Dreamin
3a4fa98b42
feat: implement delegate access model (#1943)
This is to avoid touching underlying file system if the extension is run
with liveshare.
2025-07-31 01:21:17 +08:00
Myriad-Dreamin
f9c348c7d7
feat: introduce dyn access model for futher development (#1898)
prepare for #1413 and #836
2025-07-31 00:30:13 +08:00
Myriad-Dreamin
cf20c66b26
test: ensure compile output works correctly (#1942)
Some checks are pending
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
Validate fix and prevent regression of
https://github.com/Myriad-Dreamin/tinymist/pull/1941
2025-07-30 23:25:59 +08:00
moeleak
3821861134
fix: correctly handle relative user-specified output paths in compile command (#1941)
This change ensures that user-specified output paths in the compile
command are properly handled, including relative paths.

Previously, the export task would reject relative output paths with an
error. This change converts relative paths to absolute paths by joining
them with the current working directory, allowing users to specify
relative paths like 'output/test.pdf' when compiling documents.

The fix adds path normalization using PathClean and handles the
conversion gracefully while maintaining the existing behavior for
absolute paths.

Fixes the issue where commands like:
  tinymist compile resume-en.typ ./output/test.pdf
would fail with "output path is relative" error.
2025-07-30 21:35:36 +08:00
Hong Jiarong
641b28fc45
fix: update VerbatimNode attribute to inline (#1926)
Some checks are pending
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
2025-07-30 13:39:19 +08:00
Myriad-Dreamin
75fc5f3bca
fix: emit onSaved signal to exporter when vfs is clean (#1939)
Some checks are pending
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
This bugs involves two main component: the compiler and the exporter,
the compiler compiles first and then exporter exports then. it is useful
to emit `CompileSignal::by_fs_events` to exporter even if vfs is clean
at the time we save a document.

An example triggering this bug. When user sets `exportPdf` to `onSave`,
It *bugged*:
1. OnTyped first: User types some character at T1. compiler learns that
the file content is of revision R1. the compiler compiles with revision
R1, which is needed by diagnostics event.
2. OnSaved then: Editor saves the document at T2. the compilation is
skipped early because file content is still under revision R1. In
previous version, The compilation is skipped and therefore the export is
also skipped. This is *bugged* if user sets `exportPdf` to `onSave`,
because the exporter is not run in both steps.

This PR emits the onSaved signals to both the compiler and the exporter
in the step 2.
2025-07-30 04:49:30 +08:00
Myriad-Dreamin
5d2f32945c
feat: run announce workflow in ci (#1938)
Some checks are pending
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 / prepare-build (push) Waiting to run
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
2025-07-29 17:15:51 +08:00
Myriad-Dreamin
e9ae352dfd
build(ci): call VS Code CI tasks in release.yml workflow (#1920)
Since this PR, CI runs VS Code tasks exact after built binaries and
before `dist host`. This is to ensure that the vscode artifacts are
available when undraft the releases.
2025-07-29 16:21:34 +08:00
Myriad-Dreamin
315168da1f
docs: update release date in changelog (#1937)
Some checks are pending
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2022) (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (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 / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
2025-07-29 15:18:45 +08:00
Myriad-Dreamin
d59a15df1a
build: bump version to 0.13.16 (#1934) 2025-07-29 15:16:18 +08:00
Myriad-Dreamin
0025a71951
fix: passing secrets to reused workflows (#1936) 2025-07-29 15:15:50 +08:00
Sam Estep
42b7a1205b
build: update flake.lock (#1933)
Some checks are pending
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 / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2022) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
This doesn't actually change any of the dependencies, it just makes the
changes to `flake.lock` that are automatically made when running `nix
develop`. See also #1932.
2025-07-28 11:53:49 +08:00
Myriad-Dreamin
9181619e95
build: bump version to 0.13.16-rc3 (#1928)
Some checks failed
tinymist::ci / Duplicate Actions Detection (push) Has been cancelled
tinymist::ci / prepare-build (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::gh_pages / build-gh-pages (push) Has been cancelled
tinymist::ci / build-vscode (push) Has been cancelled
tinymist::ci / build-vscode-others (push) Has been cancelled
tinymist::ci / publish-vscode (push) Has been cancelled
tinymist::ci / build-binary (push) Has been cancelled
tinymist::ci / build-vsc-assets (push) Has been cancelled
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Has been cancelled
tinymist::ci / E2E Tests (darwin-arm64 on macos-latest) (push) Has been cancelled
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Has been cancelled
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Has been cancelled
tinymist::ci / E2E Tests (win32-x64 on windows-2022) (push) Has been cancelled
* build: bump version to 0.13.16-rc3

* build: update asset crates
2025-07-26 17:54:25 +08:00
Myriad-Dreamin
ca22cf9e05
feat: auto-hide presentation toolbar when not hovered (#1923)
Some checks are pending
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Blocked by required conditions
tinymist::ci / prepare-build (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 / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2022) (push) Blocked by required conditions
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
* docs: update changelog

* feat: auto-hide presentation toolbar when not hovered

* fix: grab state

* fix: bugs
2025-07-25 18:31:35 +08:00
Myriad-Dreamin
2dc138f4d3
docs: annotate pinyin with ruby (#1924)
* docs: generate ruby

* dev: move ruby function

* dev: move ruby function
2025-07-25 18:20:09 +08:00
Myriad-Dreamin
2955d67751
revert: "feat: auto-hide presentation toolbar when not hovered (#1887)"
Reverts #1887

In test of v0.13.16-rc2, The CSS doesn't work as expected when previewing in both tab and browser.
2025-07-25 16:15:54 +08:00
Myriad-Dreamin
c58a6d2a5e
docs: update release instruction (#1921)
Some checks failed
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 / E2E Tests (linux-x64 on ubuntu-22.04) (push) Has been cancelled
tinymist::ci / publish-vscode (push) Has been cancelled
tinymist::ci / E2E Tests (darwin-arm64 on macos-latest) (push) Has been cancelled
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Has been cancelled
tinymist::ci / E2E Tests (win32-x64 on windows-2022) (push) Has been cancelled
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Has been cancelled
tinymist::ci / build-binary (push) Has been cancelled
tinymist::ci / build-vsc-assets (push) Has been cancelled
tinymist::ci / build-vscode (push) Has been cancelled
tinymist::ci / build-vscode-others (push) Has been cancelled
* docs: update release instruction
2025-07-24 03:37:35 +08:00
Myriad-Dreamin
3c40385cd2
build: bump version to 0.13.16-rc2 (#1919)
* build: bump version to 0.13.16-rc2

* docs: update changelog

* fix: update reflexo versions

* build: bump asset crates
2025-07-24 01:37:42 +08:00
Wenzhuo Liu
489689063d
chore: update typstyle-core version to 0.13.16 and adjust changelog (#1915) 2025-07-24 00:51:03 +08:00
Y.D.X.
b12bd4b694
fix: update the docs link from pattern to tiling (#1906) 2025-07-24 00:49:59 +08:00
Myriad-Dreamin
debab53887
feat: attach config to software spec for LLM (#1918) 2025-07-23 22:45:38 +08:00