update to lsp for TCL

This commit is contained in:
Christoph Brandau
2025-07-15 16:37:40 +02:00
parent 80f3019932
commit 12ed7ff2bc
12 changed files with 423 additions and 141 deletions
+7 -15
View File
@@ -5,19 +5,16 @@ const watch = process.argv.includes("--watch")
async function main() {
const ctx = await esbuild.context({
entryPoints: [
"client/src/extension.ts"
],
entryPoints: ["client/src/extension.ts", "server/src/server.ts"],
bundle: true,
format: "cjs",
minify: production,
sourcemap: !production,
sourcesContent: false,
platform: "node",
outfile: "client/dist/extension.js",
external: [
"vscode"
],
outdir: "out",
// outfile: "client/out/extension.js",
external: ["vscode"],
logLevel: "silent",
plugins: [
/* add to the end of plugins array */
@@ -42,15 +39,10 @@ const esbuildProblemMatcherPlugin = {
console.log("[watch] build started")
})
build.onEnd((result) => {
result.errors.forEach(({ text, location
}) => {
result.errors.forEach(({ text, location }) => {
console.error(`✘ [ERROR
] ${text
}`)
console.error(` ${location.file
}:${location.line
}:${location.column
}:`)
] ${text}`)
console.error(` ${location.file}:${location.line}:${location.column}:`)
})
console.log("[watch] build finished")
})