Code-Flow-Extension icon indicating copy to clipboard operation
Code-Flow-Extension copied to clipboard

Idea: Use Eclipse Sprotty

Open Nezteb opened this issue 2 years ago • 2 comments

Resources:

  • https://www.typefox.io/blog/using-sprotty-in-vs-code-extensions
  • https://github.com/eclipse-sprotty/sprotty-vscode
  • https://github.com/eclipse-sprotty/sprotty-server

One neat benefit is that this could hook into any language's LSP implementation for some nice interactivity. 🤔

Nezteb avatar Apr 17 '23 22:04 Nezteb

🙌 Thanks for raising.

After seeing that Grok has been abandoned I think it would be great to work on this extension again but from the ground up. I've had a quick look at Sprotty and it definitely looks promising and will potentially makes things a lot easier.

I will get back to you this weekend about working on this if you're interested.

Pjaerr avatar Apr 18 '23 06:04 Pjaerr

Absolutely!

Some other random tools I found for comparison/motivation: (not using Sprotty, but still)

  • https://consensys.net/diligence/blog/2019/10/solidity-visual-auditor-extension-for-vs-code/#call-graphs
    • https://github.com/ConsenSys/vscode-solidity-auditor
      • Graphs via graphviz: https://github.com/ConsenSys/surya/blob/master/src/graph.js
        • Their graphs are much more complicated than the type I think this extension would need, so a lot of that can probably be pared down.
      • Depends on: https://github.com/tintinweb/vscode-interactive-graphviz
        • There would be no need to reinvent the wheel for rendering graphviz.
      • As part of their extension pack they list: https://github.com/tintinweb/vscode-inline-bookmarks
        • Not really related to graphing per-se, but it does give a neat way to tag code for later indexing/searching/navigating.

Nezteb avatar Apr 18 '23 07:04 Nezteb