Code Monkey home page Code Monkey logo

code-flow-extension's Introduction

๐Ÿ‘‹ Welcome to my internet website

code-flow-extension's People

Contributors

dependabot[bot] avatar joshjacksonmmt avatar pjaerr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bsd5 libigerd

code-flow-extension's Issues

Add the ability to save a generated diagram as PNG

Currently the diagram can only be seen in the editor it is generated. It would be nice to be able to export this diagram as a PNG.

This would most likely be done by converting the DOM to HTML5 Canvas and then saving the canvas as an image.

Worth noting to only load any used libraries when this action is requested so as to not bloat the VS Code webview.

[Rebuild] Setup a POC extension using Sprotty/a Framework

When considering a rebuild a while back my plan was to use a frontend framework for the webview as trying to do anything complex (like a diagram that can be moved around and tweaked on an infinite canvas) seemed very cumbersome to do with the default webview behaviour of telling it vscode to render a html file and using vanilla js for anything dynamic. A framework would have made the development experience 10x better. That said, from looking at Sprotty it seems the approach taken would clash with wanting to use a frontend framework as it handles the rendering itself. It would be good to explore Sprotty and see if it makes sense for the scope of this extension or if it makes more sense to do the rendering ourselves, just need to figure out what we want this extension to actually do.

The following tasks are to create a quick proof of concept to figure out how things could potentially work (with Sprotty or otherwise) instead of just guessing ๐Ÿ˜…

  • Bare bones functionality for selecting a block of code and sending it through to the webview
  • Rendering a diagram with all of the code blocks (connected in the order they were created for the time being)
  • For each code block, render a preview of the code that was selected (ideally this is a live preview pulled directly from the file, does Sprotty help with this?)
  • Give the ability to attach a note to each code block

Once the above tasks have been explored, we should have a better idea of what is possible and what approach to take and it's probably the minimum functionality that's still a bit useful however we'd probably want the diagram to be interactive in terms of being able to move it around and disconnect/connect code blocks directly in the webview.

WSL 2 support

Hey! I'm being unable to run this extension under the WSL 2 environment. An error stating command 'extension.codeflow' not found when I click on CodeFlow appears:
image

However, I am able to run the extension outside of WSL 2 environment.

Is this a problem with my set-up or with the extension?

Provide a way to show a snippet of code surrounding and including the selected line

Currently the diagram only shows the inputted name & detail as well as the selected line in the active file.

It would be a nice addition, to show a snippet of code within each data point surrounding the selected line. This would give a better picture whilst looking at the diagram.

This is a nice to have feature and isn't strictly neccessary.

When clicking a file link, navigate to the selected line in that file

Currently when clicking a file link, it will open the file as a new virtual document in the vs code editor. It navigates to the last selected line, which may not have been the line that was selected when the data point was created.

Fix this by opening the document and navigating to the selected line.

command 'extension.codeflow' not found

image

After Installing the extension, the above error came. If you've any solution, please let me know. I very much liked the idea of the extension and would like to use this anyhow. :)
IDE: VS Code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.