mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
build: add vscode launch script for typst-preview (#374)
* build: add vscode launch script for typst-preview * chore: update lockfile
This commit is contained in:
parent
bd08e15d96
commit
8a8419b609
3 changed files with 96 additions and 19 deletions
13
.vscode/launch.json
vendored
13
.vscode/launch.json
vendored
|
@ -27,6 +27,19 @@
|
|||
],
|
||||
"preLaunchTask": "VS Code Extension Prelaunch [Jaeger]"
|
||||
},
|
||||
{
|
||||
"name": "Run Extension [Typst Preview]",
|
||||
"type": "extensionHost",
|
||||
"request": "launch",
|
||||
"runtimeExecutable": "${execPath}",
|
||||
"args": [
|
||||
"--extensionDevelopmentPath=${workspaceFolder}/contrib/typst-preview/editors/vscode"
|
||||
],
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/contrib/typst-preview/editors/vscode/out/**/*.js"
|
||||
],
|
||||
"preLaunchTask": "VS Code Extension Prelaunch"
|
||||
},
|
||||
{
|
||||
"type": "lldb",
|
||||
"request": "launch",
|
||||
|
|
84
.vscode/tasks.json
vendored
84
.vscode/tasks.json
vendored
|
@ -6,7 +6,9 @@
|
|||
"dependsOn": [
|
||||
"Compile VS Code Extension",
|
||||
"Build Debug LSP Binary",
|
||||
"Copy Debug LSP Binary to VS Code Extension"
|
||||
"Copy Debug LSP Binary to VS Code Extension",
|
||||
"Compile Typst Preview Extension",
|
||||
"Copy Debug LSP Binary to Typst Preview Extension"
|
||||
],
|
||||
"dependsOrder": "sequence",
|
||||
},
|
||||
|
@ -16,7 +18,10 @@
|
|||
"Compile VS Code Extension",
|
||||
"Build Release LSP Binary",
|
||||
"Copy Release LSP Binary to VS Code Extension",
|
||||
"Generate VS Code Extension Bundle"
|
||||
"Generate VS Code Extension Bundle",
|
||||
"Compile Typst Preview Extension",
|
||||
"Copy Release LSP Binary to Typst Preview Extension",
|
||||
"Generate Typst Preview Extension Bundle"
|
||||
],
|
||||
"dependsOrder": "sequence",
|
||||
},
|
||||
|
@ -34,11 +39,28 @@
|
|||
"path": "editors/vscode",
|
||||
"group": "build",
|
||||
},
|
||||
{
|
||||
"label": "Compile Typst Preview Extension",
|
||||
"type": "npm",
|
||||
"script": "compile",
|
||||
"path": "contrib/typst-preview/editors/vscode",
|
||||
"group": "build",
|
||||
},
|
||||
{
|
||||
"label": "Generate Typst Preview Extension Bundle",
|
||||
"type": "npm",
|
||||
"script": "package",
|
||||
"path": "contrib/typst-preview/editors/vscode",
|
||||
"group": "build",
|
||||
},
|
||||
{
|
||||
"label": "Build Debug LSP Binary",
|
||||
"type": "cargo",
|
||||
"command": "build",
|
||||
"args": [ "--bin", "tinymist" ],
|
||||
"args": [
|
||||
"--bin",
|
||||
"tinymist"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
|
@ -48,7 +70,11 @@
|
|||
"label": "Build Release LSP Binary",
|
||||
"type": "cargo",
|
||||
"command": "build",
|
||||
"args": [ "--release", "--bin", "tinymist" ],
|
||||
"args": [
|
||||
"--release",
|
||||
"--bin",
|
||||
"tinymist"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
|
@ -103,6 +129,56 @@
|
|||
"${workspaceFolder}/editors/vscode/out/"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Copy Debug LSP Binary to Typst Preview Extension",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "cp",
|
||||
"args": [
|
||||
"${workspaceFolder}\\target\\debug\\tinymist.exe",
|
||||
"${workspaceFolder}\\contrib\\typst-preview\\editors\\vscode\\out\\"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"command": "cp",
|
||||
"args": [
|
||||
"${workspaceFolder}/target/debug/tinymist",
|
||||
"${workspaceFolder}/contrib/typst-preview/editors/vscode/out/"
|
||||
]
|
||||
},
|
||||
"osx": {
|
||||
"command": "cp",
|
||||
"args": [
|
||||
"${workspaceFolder}/target/debug/tinymist",
|
||||
"${workspaceFolder}/contrib/typst-preview/editors/vscode/out/"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Copy Release LSP Binary to Typst Preview Extension",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "cp",
|
||||
"args": [
|
||||
"${workspaceFolder}\\target\\release\\tinymist.exe",
|
||||
"${workspaceFolder}\\contrib\\typst-preview\\editors\\vscode\\out\\"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"command": "cp",
|
||||
"args": [
|
||||
"${workspaceFolder}/target/release/tinymist",
|
||||
"${workspaceFolder}/contrib/typst-preview/editors/vscode/out/"
|
||||
]
|
||||
},
|
||||
"osx": {
|
||||
"command": "cp",
|
||||
"args": [
|
||||
"${workspaceFolder}/target/release/tinymist",
|
||||
"${workspaceFolder}/contrib/typst-preview/editors/vscode/out/"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -3159,13 +3159,6 @@ rimraf@^5.0.1:
|
|||
dependencies:
|
||||
glob "^10.3.7"
|
||||
|
||||
rimraf@^5.0.5:
|
||||
version "5.0.5"
|
||||
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.5.tgz#9be65d2d6e683447d2e9013da2bf451139a61ccf"
|
||||
integrity sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==
|
||||
dependencies:
|
||||
glob "^10.3.7"
|
||||
|
||||
rollup@^3.27.1:
|
||||
version "3.29.4"
|
||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981"
|
||||
|
@ -3356,6 +3349,7 @@ stdin-discarder@^0.1.0:
|
|||
bl "^5.0.0"
|
||||
|
||||
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
|
||||
name string-width-cjs
|
||||
version "4.2.3"
|
||||
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
||||
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
||||
|
@ -3424,6 +3418,7 @@ string_decoder@~1.1.1:
|
|||
safe-buffer "~5.1.0"
|
||||
|
||||
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
||||
name strip-ansi-cjs
|
||||
version "6.0.1"
|
||||
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
||||
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
||||
|
@ -3653,14 +3648,6 @@ typescript@^5.2.2, typescript@^5.3.3:
|
|||
"typst-dom@link:tools/typst-dom":
|
||||
version "0.0.0"
|
||||
|
||||
"typst-preview-frontend@link:tools/typst-preview-frontend":
|
||||
version "0.0.0"
|
||||
dependencies:
|
||||
"@myriaddreamin/typst-ts-renderer" "0.5.0-rc5"
|
||||
"@myriaddreamin/typst.ts" "0.5.0-rc5"
|
||||
rxjs "^7.8.1"
|
||||
typst-dom "link:tools/typst-dom"
|
||||
|
||||
uc.micro@^1.0.1, uc.micro@^1.0.5:
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
|
||||
|
@ -3858,6 +3845,7 @@ workerpool@6.2.1:
|
|||
integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==
|
||||
|
||||
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
|
||||
name wrap-ansi-cjs
|
||||
version "7.0.0"
|
||||
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
||||
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue