-
Notifications
You must be signed in to change notification settings - Fork 228
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
[Feature]: VS Code Snippets for TypeSpec #4559
Comments
what kind of snippet are you thinking of? we cannot add any azure specific snippet directly in the base extension. If so seems like the options is we either might be able to define snippet dynamically and need tsp library yo provide them in some way or provide an typespec azure snippet extension. |
I think we can split snippets into different categories. |
@archerzz , are you aware of any other Azure specific requirements for TypeSpec IDE. It will be helpful for us to triage and see whether we does need one more extension just for Azure specific features, or maybe it's easier and lower cost to just support dynamic code snippet if this is the only one requirement. thanks. |
AFAICS,
|
Even if it was just snippet I do think it might be easier anyway to just make a snippet only extension, the only problem is discoverability for our users |
- add snippets for typespec basic constructs - package snippets within vs code extension part of microsoft#4559
I am not sure, the dev cost is low, but my main concern is the maintain cost which is always something we need to think about for releasing something new. Or is it fine if we just make it internal, @archerzz ? I think an private release should be good enough, right? As for discoverability, I guess we will need to have doc to tell service team what to do/install anyway. |
the other option too is just to add the snippets to azure rest api spec repo |
- add snippets for typespec basic constructs - package snippets within vs code extension part of #4559
The basic snippets has been added. Keep this open to track the work for snippets especially for azure service. |
could maybe close this one and create a new one in typespec-azure if its now just azure specific |
I agree. @RodgeFu Maybe we can create an issue under https://github.com/Azure/typespec-azure? |
Yeah, sounds good to me. thanks. |
Created Azure/typespec-azure#1770 |
- add snippets for typespec basic constructs - package snippets within vs code extension part of microsoft#4559
Clear and concise description of the problem
VS Code Snippets are quite useful for quick typing codes. We should add some common snippets through our VS code plugin for TypeSpec.
Like below:
Checklist
The text was updated successfully, but these errors were encountered: