mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 13:13:43 +00:00
feat: implement debugging console (#1445)
* feat: dap server parts * dev: remove comments * feat: dap client parts * fix: test
This commit is contained in:
parent
b5a629435a
commit
8a8cac096e
22 changed files with 1136 additions and 3 deletions
30
crates/tinymist-dap/Cargo.toml
Normal file
30
crates/tinymist-dap/Cargo.toml
Normal 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
|
15
crates/tinymist-dap/src/lib.rs
Normal file
15
crates/tinymist-dap/src/lib.rs
Normal 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());
|
||||
// });
|
Loading…
Add table
Add a link
Reference in a new issue