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

Snippets #254

Closed
bjartek opened this issue Jan 25, 2024 · 8 comments
Closed

Snippets #254

bjartek opened this issue Jan 25, 2024 · 8 comments
Assignees

Comments

@bjartek
Copy link

bjartek commented Jan 25, 2024

Snippets

Grant category

Please select one:

  • Developer tools / services

Description

Problem statement

Snippets is a fantastic tool to ease the work of developing. VS Code has a rich set of snippets for various languages but nothing for flow. This grant aims to fix that.

Proposed solution

Impact

Easier to code, reuse best practises in the IDE

Milestones and funding

Note: Please consider adoption and/or maintenance milestones at the end of your project.

Milestone Deliverables Timeline Risks USD proposal
1 - Gather information document 2 weeks In order to know what snippets are needed it is important to talk to the community first and also analyze existing code to know what to add 3000
2 - Implementation extension/repo 4 weeks Implement snippets in a github repo and either hand it of to be included in the official vs code plugin or add a separate snippets plugin for code 7000

Total funding proposed: 10000

Team

Name Role Bio Contact
Bjarte Karlsen Code-monkey I sling code and have fun and help some people too [email protected]
@bjartek
Copy link
Author

bjartek commented Jan 25, 2024

An example video on the power of snippets
https://www.youtube.com/watch?v=RMOkYdKxelY

I have a PoC repo with this already but have not spent the effort on gathering it all since I wanted to gauge the interest for this.

@bjartek
Copy link
Author

bjartek commented Jan 25, 2024

@turbolent
Copy link
Member

Great to see these useful snippets!

It would be nice if the snippets could be added to the existing set of snippets that we have in the language server (see https://github.com/onflow/cadence-tools/blob/master/languageserver/server/server.go). That way all IDEs/editors that support the Language Server Protocol could make use of them, including VS Code and the Playground.

@bjartek
Copy link
Author

bjartek commented Jan 25, 2024

That is a bit out of scope for this grant but it can be a follow up one maybe? Or add a new milestone?

I did not know these where there so i have to look at my ide setup and see how i can get them to work.

Doing duplicate work here is not needed for sure.

@turbolent
Copy link
Member

turbolent commented Jan 25, 2024

In what format / for what tools do you plan to provide the snippets?

@bjartek
Copy link
Author

bjartek commented Jan 25, 2024

The plan was to use the json file in my example repo since that is what code supports. But reading about lsp snippets that might be better. I think i need to study some more.

@bjartek
Copy link
Author

bjartek commented Jan 25, 2024

It looks like LSP snippets really can mimic a lot of what native snippets can do and adding them to the servers should not be that hard so it might be possible to use that in goal 2 instead of code plugin.

@Aliserag
Copy link
Collaborator

We appreciate your proposal. After careful review we've decided not to proceed at this time. Please stay connected to our Twitter and working groups to stay on top of the latest developments in the ecosystem and new grant opportunities.

@github-project-automation github-project-automation bot moved this from New: In review to Closed (withdrawn or passed) in Grants Overview Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed (withdrawn or passed)
Development

No branches or pull requests

4 participants