feat: implement debugging console (#1445)

* feat: dap server parts

* dev: remove comments

* feat: dap client parts

* fix: test
This commit is contained in:
Myriad-Dreamin 2025-03-17 13:06:22 +08:00 committed by GitHub
parent b5a629435a
commit 8a8cac096e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 1136 additions and 3 deletions

View file

@ -0,0 +1,30 @@
[package]
name = "tinymist-dap"
description = "Fast debugger implementation for typst."
categories = ["compilers"]
keywords = ["api", "debugger", "typst"]
authors.workspace = true
version.workspace = true
license.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
typst-library.workspace = true
typst.workspace = true
tinymist-std.workspace = true
tinymist-analysis.workspace = true
tinymist-world = { workspace = true, features = ["system"] }
parking_lot.workspace = true
comemo.workspace = true
serde.workspace = true
serde_json.workspace = true
base64.workspace = true
[dev-dependencies]
insta.workspace = true
[lints]
workspace = true

View file

@ -0,0 +1,15 @@
//! Fast debugger implementation for typst.
// this._runtime = new MockRuntime(fileAccessor);
// this._runtime.on("breakpointValidated", (bp: IRuntimeBreakpoint) => {
// this.sendEvent(
// new BreakpointEvent("changed", {
// verified: bp.verified,
// id: bp.id,
// } as DebugProtocol.Breakpoint),
// );
// });
// this._runtime.on("end", () => {
// this.sendEvent(new TerminatedEvent());
// });