Skip to content

Commit

Permalink
chore(vscode): support breakpoint debugging (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX authored Dec 1, 2024
1 parent 7eb29a1 commit 5678108
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"autoAttachChildProcesses": true,
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/vscode",
"--folder-uri=${workspaceRoot}/packages/vscode/syntaxes"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/packages/vscode/dist/**/*.js"
]
}
]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"demo:composable-vue": "pnpm -C demo/composable-vue run dev",
"demo:vue-runner": "pnpm -C demo/vue-runner run dev",
"demo:dev": "pnpm -C demo/starter run dev",
"vscode:dev": "pnpm -C packages/vscode run dev",
"play": "pnpm demo:dev",
"dev": "pnpm -r --filter=./packages/** --parallel run dev",
"lint": "eslint . --cache",
Expand Down
3 changes: 2 additions & 1 deletion packages/vscode/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from 'node:fs'
import { join } from 'node:path'
import process from 'node:process'
import { resolvePath } from 'mlly'
import { defineConfig } from 'tsup'
import { generateCodeblockPatch } from './syntaxes/codeblock-patch'
Expand All @@ -12,7 +13,7 @@ export default defineConfig({
format: ['cjs'],
target: 'node18',
clean: true,
minify: true,
minify: process.env.NODE_ENV === 'production',
sourcemap: true,
external: [
'vscode',
Expand Down

0 comments on commit 5678108

Please sign in to comment.