Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add context menu commands for .g4 files #308

Open
johnholliday opened this issue Sep 9, 2024 · 2 comments
Open

Feature Request: Add context menu commands for .g4 files #308

johnholliday opened this issue Sep 9, 2024 · 2 comments
Labels
feature request A request for a new feature

Comments

@johnholliday
Copy link

Add an ANTLR context menu for .g4 files to quickly execute common commands against the grammar without having to open the file.

@mike-lischke mike-lischke added the feature request A request for a new feature label Sep 9, 2024
@mike-lischke
Copy link
Owner

What commands do you have in mind? Can you give an example?

@johnholliday
Copy link
Author

Here I'm thinking of a kind of "extensibility model" for ANTLR that could invoke dotnet tools that are configured in the settings. That way if developers have other tools that can manipulate an ANTLR grammar, they could easily add them to the settings and invoke them from the file context menu.

As an example, I'm working on a tool that uses generative AI to analyze an ANTLR grammar to produce various artifacts that depend on the objects defined by the grammar. I can install the tool as a local dotnet tool, but to use it I have to work outside of VSCode or drop down into the integrated terminal. Having it appear on the context menu makes it easier, but also reminds me that the tool is available, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants