Skip to content

Commit 03e6ce5

Browse files
committed
WIP
1 parent a2672a4 commit 03e6ce5

17 files changed

+966
-549
lines changed

esbuild.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { writeFileSync } from "fs";
22
import { buildWatch, isProduction } from "@hpcc-js/esbuild-plugins";
3+
import { aliasPath } from "esbuild-plugin-alias-path";
34

45
export function nodeTpl(input, output, format = "esm", external = []) {
56
return buildWatch({
@@ -54,7 +55,7 @@ export function browserTpl(input, output, format = "esm", globalName = undefined
5455
}
5556

5657
// config ---
57-
nodeTpl("src/extension.ts", "dist/extension", "cjs", ["vscode"]);
58+
nodeTpl("src/extension.ts", "dist/extension", "cjs", ["vscode", "fs"]);
5859
nodeTpl("src/notebook/renderers/wuRenderer.tsx", "dist/notebook/renderers/wuRenderer", "cjs", ["vscode", "fs", "path", "os"]);
5960
nodeTpl("src/notebook/renderers/ojsRenderer.ts", "dist/notebook/renderers/ojsRenderer", "cjs", ["vscode", "fs", "path", "os"]);
6061
nodeTpl("src/debugger.ts", "dist/debugger", "cjs", ["vscode"]);

package-lock.json

+66-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+44-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"compile-types-watch": "npm run compile-types -- --watch",
2525
"compile-ts": "node esbuild.mjs",
2626
"compile-ts-dev": "npm run compile-ts -- --mode=development",
27-
"compile-ts-watch": "npm run compile-ts-dev -- --serve",
27+
"compile-ts-watch": "npm run compile-ts-dev -- --watch",
2828
"compile-util": "tsc --project ./tsconfig.util.json",
2929
"compile-util-watch": "npm run compile-util -- -w",
3030
"compile": "run-p compile-types compile-ts",
@@ -47,6 +47,7 @@
4747
"update": "npx npm-check-updates -u -t minor"
4848
},
4949
"dependencies": {
50+
"@vscode/prompt-tsx": "^0.2.6-alpha",
5051
"exceljs": "4.4.0"
5152
},
5253
"devDependencies": {
@@ -80,13 +81,14 @@
8081
"@vscode/extension-telemetry": "0.9.7",
8182
"@vscode/vsce": "2.32.0",
8283
"adm-zip": "0.5.15",
83-
"antlr4": "4.11.0",
84+
"antlr4": "4.13.2",
8485
"assert": "2.1.0",
8586
"copy-to-clipboard": "3.3.3",
8687
"copyfiles": "2.4.1",
8788
"csv-writer": "1.6.0",
8889
"diff": "5.2.0",
8990
"esbuild": "0.23.0",
91+
"esbuild-plugin-alias-path": "^2.0.2",
9092
"esbuild-plugin-text-replace": "1.3.0",
9193
"esbuild-plugin-umd-wrapper": "3.0.0",
9294
"eslint": "8.57.0",
@@ -201,6 +203,46 @@
201203
"path": "./snippets/kel.json"
202204
}
203205
],
206+
"chatParticipants": [
207+
{
208+
"id": "chat.ecl",
209+
"fullName": "ECL",
210+
"name": "ecl",
211+
"description": "Ask your ECL question here?",
212+
"isSticky": true,
213+
"commands": [
214+
{
215+
"name": "randomTeach",
216+
"description": "Pick at random a computer science concept then explain it in purfect way of a cat"
217+
},
218+
{
219+
"name": "play",
220+
"description": "Do whatever you want, you are a cat after all",
221+
"disambiguation": [
222+
{
223+
"categoryName": "cat_play",
224+
"description": "The user just wants to relax and see the cat play.",
225+
"examples": [
226+
"Enough learning, let the cat play with a ball of yarn",
227+
"Can you show me a cat playing with a laser pointer?"
228+
]
229+
}
230+
]
231+
}
232+
],
233+
"disambiguation": [
234+
{
235+
"categoryName": "ecl",
236+
"description": "The user wants to learn about ECL in an informal way.",
237+
"examples": [
238+
"Teach me about ECL JOINs using metaphors",
239+
"Explain to me what a grouped aggregate is in a simple way",
240+
"Can you explain to me what is a function in the ECL language?"
241+
]
242+
}
243+
]
244+
}
245+
],
204246
"viewsWelcome": [],
205247
"commands": [
206248
{

scripts/grammar-generate.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

33
cd ./grammar/kel
4-
java -jar ../antlr-4.10.1-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/kel -visitor -Xexact-output-dir ./*.g4
4+
java -jar ../antlr-4.13.2-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/kel -visitor -Xexact-output-dir ./*.g4
55
cd ../..
66

77
cd ./grammar/salt
8-
java -jar ../antlr-4.10.1-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/salt -visitor -Xexact-output-dir ./*.g4
8+
java -jar ../antlr-4.13.2-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/salt -visitor -Xexact-output-dir ./*.g4
99
cd ../..
1010

1111
# cd ./grammar/dude

0 commit comments

Comments
 (0)