-
Notifications
You must be signed in to change notification settings - Fork 14
Add more useful snippet #46
Comments
Even better - I wanted to contribute some of my snippets at some point. Didn't have time yet though. So far I have snippets for:
I have to clean them up a bit and make more universal. I have this on my todo list. |
I'm also creating some sort of blueprint generator/scaffolding thingie based on my boilerplate. When it's ready it'll be installable via npm and should allow to quickly bootstrap a general API specification with selected authentication, resource links, basic CRUD for user accounts, etc. |
Cool! Looking forward for those. Feel free eventually to share raw and unpolished stuff, I'll be happy to finish them and include those. |
I've started to move my snippets from markdown config file to API Blueprint and there is something wrong with language id. Selecting API Blueprint from snippets list opens up the |
@jsynowiec Unfortunately I do not think I understood the problem correctly. Could you please elaborate or eventually attach a gif? If you do not want to dig into VSCode extension and those things, feel free to add them here directly and I'll take care of that. I'll give you credit, of course! |
I've created a snippet definitions file for API Blueprint (Preferences -> User Snippets -> API Blueprint) and added some snippets that I previously had in my markdown user snippets. After saving the file vscode doesn't list those new snippets while editing apib file. It works as supposed when I've added those snippets for Markdown and set API Blueprint as Markdown syntax.
It's not a problem. I already have my own extension ;-) I'm taking my vacation now so I'll get back to it after few weeks. |
Oh - interesting. I have no idea to be honest. I'll try to dig into but that might be a VSCode bug as well. Have a great vacation! |
@jsynowiec Are you still interested in sharing these snippets eventually? |
Sure. Have you found a way to allow for external snippets alongside those in the extension? |
It seems like a VSCode limitation. I dug into the source code some weeks ago but I do not really remember the precise line. The question is - do you want to bring these snippets into this extension or - do you want to create another one? |
I'll contribute them and send a PR. Just need some time. I'm not quite into Swagger so you should create separate enhancement issues for both, Swagger and Blueprint snippets, reference them here. You can assign me to the second one (if GH allows to assign someone outside the repo). |
It's not possible to assign external people, unfortunately. Once done, I'll take your one as an inspiration and probably convert these to Swagger, if they make sense. |
@jsynowiec Any updated on that? |
@jsynowiec Ping! |
@jsynowiec Last call, then I'll close the issue. |
Hey, sorry |
@jsynowiec Do you have some drafts at least? I can work on those eventually. |
Unfortunately nothing I can share without cleaning and rewriting other than what is already available at https://github.com/jsynowiec/api-blueprint-boilerplate/blob/master/src/api.apib |
I think it would be a good idea to add a bunch of useful snippets while working with both Swagger and API Blueprint
@jsynowiec , you're the only user reporting so far...I'd love to get some inputs from you. What do you think would speed up your work as snippets?
The text was updated successfully, but these errors were encountered: