mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-25 13:23:44 +00:00
feat: customize paste behaviors in vscode (#2238)
Some checks failed
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
Some checks failed
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
Close #1830 and close #2063 The hook script feature is available since `tinymist` v0.14.2. Hook Scripts allow you to hook and customize certain behaviors of tinymist by providing code snippets that will be executed at specific events. The hook scripts are run as typst scripts with some predefined variables. Since typst is sandboxed, the hook scripts cannot access system directly. However, you can still bind lsp commands to perform complex operations. See https://myriad-dreamin.github.io/tinymist/feature/script-hook.html. - [x] run a demo - [x] finish tests - [x] add docs
This commit is contained in:
parent
c206933bf5
commit
06c2240caa
25 changed files with 563 additions and 81 deletions
|
|
@ -14,6 +14,7 @@ const vector = {
|
|||
"install:vscode": () => build.installVscode("release"),
|
||||
"build:web:base": build.buildWebLspBinaryBase,
|
||||
"build:web": build.buildTinymistVscodeWeb,
|
||||
"test:vsc": build.testTinymistVscode,
|
||||
};
|
||||
|
||||
const fn = vector[kind];
|
||||
|
|
|
|||
|
|
@ -145,6 +145,14 @@ export async function buildTinymistVscodeWeb() {
|
|||
]);
|
||||
}
|
||||
|
||||
export async function testTinymistVscodeBase() {
|
||||
await spawnAsync("vscode:test", "cd editors/vscode && yarn test:vsc");
|
||||
}
|
||||
|
||||
export async function testTinymistVscode() {
|
||||
await Promise.all([checkVersion(), buildLspBinary("release").then(testTinymistVscodeBase)]);
|
||||
}
|
||||
|
||||
export async function buildTinymistVscodeSystemBase() {
|
||||
await spawnAsync("vscode:system", "cd editors/vscode && node esbuild.system.mjs");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue