zio-snippets READMEA collection of snippets to improve productivity when writing ZIO code in Scala. For now, only tested for Scala 2. FeaturesThe extension provides a number of snippets, some of which are short and should be used within the file, some are longer and intended to populate an entire file. In the following list of snippets, Short SnippetsFor ComprehensionsSimple vanilla Scala for comprehension:
For comprehension with the first element being
For comprehension with the first element being
ZIO TestZIO Test suite:
ZIO Test test
ZIO Test effectful test with for comprehension
File Template SnippetsThe file template snippets are intended to populate a new or empty file. They are not package aware, so the package will have to be added manually. (There is a reminder comment included for that.) Service PatternA simple snippet to add a new service according to the
ZIO service parttern.
ZIO AppA simple, runnable ZIO app.
ZIO Test App/SpecA simple, executable ZIO Test spec file.
Known IssuesNone RoadmapThe extension is currently in a testing stage. Depending on my personal usage experience (and potential user feedback), more snippets will likely be added in the future. It would be cool to eventually make this snippet collection part of a bigger VSCode ZIO extension, which might have more advanced features. Feedback and ContributionsThis is free, open source software. All contributions are welcome. If you are interested in contributing, please get in touch via GitHub issues. Any feedback, improvement suggestions or additional snippets you would like to see, are most welcome. Please open an issue on GitHub for this too. Release NotesFor the full release notes, please see the changelog. [0.0.1] - 2023-01-15Initial test release: A first couple of snippets. |