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

STORY: Snippets #748

Open
8 of 24 tasks
neilpeterson opened this issue Jun 3, 2020 · 0 comments
Open
8 of 24 tasks

STORY: Snippets #748

neilpeterson opened this issue Jun 3, 2020 · 0 comments

Comments

@neilpeterson
Copy link
Contributor

neilpeterson commented Jun 3, 2020

Initial work (0.11.0 and 0.12.0)

Contextualization:

  • Parameter: single snippet or a snippet for each type with a default value?
  • Variables: simple variable snippet
  • Function: simple function (we do not have one now)
  • Resource: list of resources (current behavior minus all non-resource snippets)
  • Outputs: simple output

Questions

  • What will trigger snippets "", arm, or both? A: both

Make snippet files easier to work with

  • Get rid of \t
  • Use JSON objects instead of strings for body
  • Place into template files in correct context so that authors get validation and Intellisense

Potential future work (discussion)

  • Expand contextualization (things like deployment scopes, child resources)
  • Some snippets give errors about the number of segments in the resource type because they're written as child resources
  • Consider template format (multi-file, can we use ARM JSON, goal = simplify)
  • Consider multiple sources / methods for providing snippets:
  • Resource generalization: add resource with params and variables (VS does this today)
  • Consider how to manage common properties like location. Can we implement resource spanning mechanism for providing a list of locations. Need to consider that not all resources / api versions are available in all regions.
  • How will this work affect insert item

Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants