You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me, Tinymist is the right place for this feature. Other doc string generators might struggle to implement this feature because of lack of high quality typst, for example treesitter parser for Typst behaves poorly for identifying function definitions, thus hard to implement Neogen for Typst.
Hey, you found a good feature. First we could split two parts to discuss with less arguments:
Q1: How does tinymist expose the function to users?
Q2: How does tinymist-query provide a function to help that?
For Q1, instead of guessing people's mind, what about using code actions? It should provide a code action to toggle comment update on head of the let binding items (e.g. #let f of #let f(x) = x). Compared with always generate docs automatically, providing a such code action would be less controversial.
For Q2, tinymist-query should provide a comment updater that not only generating docs from scratch but also updating existing docs. As a good start, it should be good enough to provide a simple generator.
Eric-Song-Nop
changed the title
Auto Tidy style doc comment
Auto Completion Tidy style doc comment
Dec 17, 2024
Motivation
Doc comment is handy in Typst, while repeaty to repeat the parameters. We can have tinymist to generate a doc comment snippet for use when insert
///
Description
Similar to VSCode auto JSDoc.
Examples/Questions
when insert
///
before a function, we can generate a snippet for doc comment:The text was updated successfully, but these errors were encountered: