mike-lischke / vscode-antlr4

ANTLR4 language support for Visual Studio Code
http://www.soft-gems.net
MIT License
426 stars 60 forks source link

Parse tree in same window as input file #43

Open johnholliday opened 6 years ago

johnholliday commented 6 years ago

When debugging an input file, the parse tree is written to files that all have the same name "Parse Tree". This makes it very difficult to keep track of which file goes with which run. As an example, if I want to compare the results of parsing 2 separate input files, it quickly becomes unmanageable and significantly interrupts the typical workflow.

Instead of displaying the parse tree in a separate file, is it possible to: 1) Create a split pane within the input file window itself to display the parse tree for that file? or 2) Rename the parse tree file to match that of the input file (e.g. "Parse Tree - My Input File")?

mike-lischke commented 6 years ago

Visual Studio Code limits here what's possible. Recently some enhancements have been implemented wrt editor layouts. I'll take a deeper look to see if we can use that to improve the way parse trees are shown.

Longer names for the tab heading has the disadvantage that the available tab space is quickly filled then and the tabs will be shorted. No idea how to overcome that.