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: add a printNode function to the base node classes and use that in the lexical tree view #6226

Open
ed-sparkes opened this issue May 31, 2024 · 1 comment
Labels
enhancement Improvement over existing feature

Comments

@ed-sparkes
Copy link

I would like to include some state in the tree view for my custom nodes, on investigation it looks as if there is specific code to handle text and link nodes in the printNode function in generateContent.ts

There appears to be a way to supply a customPrint function however this presumably is not possible to use if relying on the chrome extension for dev tools as there would be no way to pass a custom print function in.

If instead TextNode and LinkNode implemented a printNode abstract function on the base node classes then we could add debug information to custom nodes by overriding

@ed-sparkes ed-sparkes added the enhancement Improvement over existing feature label May 31, 2024
@2wheeh
Copy link
Contributor

2wheeh commented May 31, 2024

This one got merged just a few days ago. Let's wait for the next release 😋.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement over existing feature
Projects
None yet
Development

No branches or pull requests

2 participants