feat: local publish

This commit is contained in:
Myriad-Dreamin 2024-03-09 16:15:45 +08:00
parent 6ca11dc93c
commit 4fb4a82852
2 changed files with 41 additions and 8 deletions

45
.vscode/tasks.json vendored
View file

@ -11,13 +11,14 @@
"dependsOrder": "sequence",
},
{
"label": "VS Code Extension Prelaunch [Jaeger]",
"label": "Build VS Code Extension Bundle",
"dependsOn": [
"Compile VS Code Extension",
"Build Debug LSP Binary [Jaeger]",
"Copy Debug LSP Binary to VS Code Extension"
"Build Release LSP Binary",
"Copy Release LSP Binary to VS Code Extension",
"Generate VS Code Extension Bundle"
],
"dependsOrder": "sequence"
"dependsOrder": "sequence",
},
{
"label": "Compile VS Code Extension",
@ -26,6 +27,13 @@
"path": "editors/vscode",
"group": "build",
},
{
"label": "Generate VS Code Extension Bundle",
"type": "npm",
"script": "package",
"path": "editors/vscode",
"group": "build",
},
{
"label": "Build Debug LSP Binary",
"type": "cargo",
@ -37,10 +45,10 @@
"group": "build"
},
{
"label": "Build Debug LSP Binary [Jaeger]",
"label": "Build Release LSP Binary",
"type": "cargo",
"command": "build",
"args": [ "--bin", "tinymist", "--features", "jaeger" ],
"args": [ "--release", "--bin", "tinymist" ],
"problemMatcher": [
"$rustc"
],
@ -70,6 +78,31 @@
"${workspaceFolder}/editors/vscode/out/"
]
}
},
{
"label": "Copy Release LSP Binary to VS Code Extension",
"type": "shell",
"windows": {
"command": "cp",
"args": [
"${workspaceFolder}\\target\\release\\tinymist.exe",
"${workspaceFolder}\\editors\\vscode\\out\\"
]
},
"linux": {
"command": "cp",
"args": [
"${workspaceFolder}/target/release/tinymist",
"${workspaceFolder}/editors/vscode/out/"
]
},
"osx": {
"command": "cp",
"args": [
"${workspaceFolder}/target/release/tinymist",
"${workspaceFolder}/editors/vscode/out/"
]
}
}
]
}

View file

@ -1,11 +1,11 @@
{
"name": "tinymist",
"description": "A language server for Typst",
"description": "An integrated language service for Typst",
"repository": {
"type": "git",
"url": "https://github.com/Myriad-Dreamin/tinymist"
},
"displayName": "Tinymist Typst LSP",
"displayName": "Tinymist Typst",
"author": "Myriad-Dreamin",
"contributors": [
"Myriad-Dreamin",