Skip to content

Commit

Permalink
Fixed bug: Setting no generation language should not automatically ap…
Browse files Browse the repository at this point in the history
…ply Java as default

closes #182

Signed-off-by: Mike Lischke <mike@lischke-online.de>
  • Loading branch information
mike-lischke committed Nov 26, 2023
1 parent 327c325 commit 5884093
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
"type": "object",
"default": {
"mode": "internal",
"language": "Java",
"listeners": true,
"visitors": false
},
Expand Down Expand Up @@ -162,7 +161,7 @@
},
"language": {
"type": "string",
"default": "Java",
"default": "",
"description": "Specifies the target language for the generated code, overriding what is specified in the grammar"
},
"listeners": {
Expand Down
2 changes: 1 addition & 1 deletion src/ExtensionHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export class ExtensionHost {
/**
* For certain services we have to (re)generate files from grammars in the background:
* - syntactic + semantic grammar analysis by the ANTLR tool
* - generate interpreter data (for debugging + ATN views)
* - generate interpreter data (for debugging + web views)
*
* @param document For which to generate the data.
*/
Expand Down
8 changes: 0 additions & 8 deletions src/backend/SourceContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,15 +463,7 @@ export class SourceContext {
ANTLRv4Lexer.RPAREN,
ANTLRv4Lexer.LBRACE,
ANTLRv4Lexer.RBRACE,
//ANTLRv4Lexer.RARROW,
//ANTLRv4Lexer.LT,
ANTLRv4Lexer.GT,
//ANTLRv4Lexer.ASSIGN,
//ANTLRv4Lexer.QUESTION,
//ANTLRv4Lexer.STAR,
//ANTLRv4Lexer.PLUS_ASSIGN,
//ANTLRv4Lexer.PLUS,
//ANTLRv4Lexer.OR,
ANTLRv4Lexer.DOLLAR,
ANTLRv4Lexer.RANGE,
ANTLRv4Lexer.DOT,
Expand Down
4 changes: 0 additions & 4 deletions src/frontend/FrontendUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ export class FrontendUtils {
return webview.asWebviewUri(path).toString();
}

public static isAbsolute(p: string): boolean {
return path.normalize(p + "/") === path.normalize(path.resolve(p) + "/");
}

public static deleteFolderRecursive(target: string): void {
Log.debug(`Deleting folder ${target}`);

Expand Down

0 comments on commit 5884093

Please sign in to comment.