feat: add DSH IDE open-file references

This commit is contained in:
2026-08-17 11:52:48 +08:00
commit d96c11ae3d
42 changed files with 6991 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import * as esbuild from 'esbuild'
const watch = process.argv.includes('--watch')
const options = {
entryPoints: ['src/extension.ts'],
bundle: true,
outfile: 'dist/extension.js',
external: ['vscode'],
format: 'cjs',
platform: 'node',
target: 'node20',
sourcemap: true,
logLevel: 'info',
}
if (watch) {
const context = await esbuild.context(options)
await context.watch()
console.log('Watching VS Code extension sources...')
} else {
await esbuild.build(options)
}