HNHacker News
TopNewBestAskShowJobs

khanhhuy

3 karma · joined June 20, 2023

submissionscomments
khanhhuy··on Show HN: CodeDiagram – VSCode extension for quickly making code flow diagrams
After some searching, I think the possible approach is to use a Language Server. For example: the "Find References" in VSCode is implemented through TypeScript Language Server.

I skimmed some LSP extensions (Vue, TS), the codes are quite complex, but you only need to interact with those language servers, not re-implement them, so that's still possible

khanhhuy··on Show HN: CodeDiagram – VSCode extension for quickly making code flow diagrams
I see, this really makes sense. I'll try to figure out something for the JavaScript and Vue use cases.
khanhhuy··on Show HN: CodeDiagram – VSCode extension for quickly making code flow diagrams
Hi, thank you for trying the tool. I have a plan to store the diagram locally e.g. each diagram is a `.codediagram` file.

Do you think this would help your case?

khanhhuy··on Show HN: CodeDiagram – VSCode extension for quickly making code flow diagrams
I also use Vue for this tool. Great framework.

How would you imagine the auto generating feature help for your use cases? Is it for generating the Vue components dependencies?

khanhhuy··on Show HN: CodeDiagram – VSCode extension for quickly making code flow diagrams
Hi, it cannot. Tbh, this is something that I want to build but still struggle to find a proper solution.

May I ask more about your codebase, like the languages and frameworks that you're using?