Skip to content

Commit

Permalink
Revert changes for removing the node_modules folder from the extension
Browse files Browse the repository at this point in the history
Close #242 Visual parse tree not showing for version 2.4.5

Signed-off-by: Mike Lischke <mike@lischke-online.de>
  • Loading branch information
mike-lischke committed Feb 10, 2024
1 parent 067221c commit ec9339d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 19 deletions.
2 changes: 0 additions & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ images/
grammars/
doc/
coverage/
node_modules/
**/*.map
build/

cspell.json
jest.config.js
Expand Down
13 changes: 0 additions & 13 deletions build/copyFiles.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@
"codicon",
"codicons",
"coloncolon",
"customcss",
"darkgray",
"debugprotocol",
"dlanguage",
"eval",
"fullwidth",
"graps",
"halfwidth",
"idarray",
"interp",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@
"test": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --no-coverage",
"generate": "antlr4ng -Dlanguage=TypeScript -visitor -Xexact-output-dir grammars/LexBasic.g4 grammars/ANTLRv4Lexer.g4 grammars/ANTLRv4Parser.g4 -o src/parser",
"lint": "eslint \"./src/**/*.ts\"",
"build": "tsc -b && esbuild ./src/extension.ts --bundle --outfile=out/main.cjs --external:vscode --format=cjs --platform=node --sourcemap=external --loader:.svg=file && node build/copyFiles.cjs",
"build": "tsc -b && esbuild ./src/extension.ts --bundle --outfile=out/main.cjs --external:vscode --format=cjs --platform=node --sourcemap=external --loader:.svg=file",
"build-watch": "npm run build -- --sourcemap --watch"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/backend/SourceContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,8 @@ export class SourceContext {
if (options.alternativeJar) {
parameters.push(options.alternativeJar);
} else {
parameters.push(path.join(this.extensionDir, "out/antlr4-4.13.2-SNAPSHOT-complete.jar"));
parameters.push(path.join(this.extensionDir,
"node_modules/antlr4ng-cli/antlr4-4.13.2-SNAPSHOT-complete.jar"));
}

if (options.language) {
Expand Down

0 comments on commit ec9339d

Please sign in to comment.