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

[Feedback] new CallStack feature #10

Open
RedCMD opened this issue Mar 7, 2024 · 1 comment
Open

[Feedback] new CallStack feature #10

RedCMD opened this issue Mar 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@RedCMD
Copy link
Owner

RedCMD commented Mar 7, 2024

I've just add a new feature. CallStack (name change?)

just install the latest pre-release version

open any basic document and right click => Show TextMate Calling Stack
It'll open up a new view showing you the tree structure of how TextMate tokenized the file

each element is a begin or match rule
with the label being name

most things are wip
while, end and captures don't show up correctly

I am yet to implement the Follow Cursor feature
but the goto feature is mostly working so far
just click the little right arrow on an element and it'll take you to the corresponding rule

what icon should I have for each element?
prob something different for begin/match/end/while/captures etc

for the label
should I use name, contentname, comment, or the captured text?
being in mind that any of them could be blank
more so in different grammars

annoyingly I had to modify the original vscode-textmate code to be able to extract the textmate tree structure
I was thinking of using https://github.com/ds300/patch-package instead of including the entire vscode-textmate repo
does the patch package tool work well on 50k+ character single line files?

currently
many bugs

RedCMD added a commit that referenced this issue Mar 7, 2024
RedCMD added a commit that referenced this issue Mar 10, 2024
RedCMD added a commit that referenced this issue Mar 12, 2024
@RedCMD RedCMD added enhancement New feature or request question Further information is requested labels Apr 16, 2024
@RedCMD RedCMD self-assigned this Apr 16, 2024
@RedCMD
Copy link
Owner Author

RedCMD commented May 4, 2024

  • rename CallStack to something else. TextMate Tokens?
  • find freezing issue with large amount of treeview nodes
  • support injections and injectTo
  • find why VSCode sometimes stops highlighting text (goto) ctrl+click Definition breaks editor.action.goToLocations microsoft/vscode#212089
  • show end and while nodes in the treeview
  • colourize scopes in list view
  • colourize scopes in tree view
  • show cached tokenization times
  • add option to follow cursor
  • allow multiple docs at once
  • add auto refresh option
  • add node counts in hover
  • add goto to scopes in list view
  • fetch correct grammars and injections bd4a2ba

image
image

RedCMD added a commit that referenced this issue May 6, 2024
RedCMD added a commit that referenced this issue May 29, 2024
RedCMD added a commit that referenced this issue May 30, 2024
RedCMD added a commit that referenced this issue Jun 8, 2024
RedCMD added a commit that referenced this issue Jun 8, 2024
RedCMD added a commit that referenced this issue Jun 14, 2024
RedCMD added a commit that referenced this issue Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant