update to lsp for TCL
This commit is contained in:
+7
-15
@@ -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")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user