-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "required-properties" snippet to modules (#2658)
* Add required-properties snippet to module * Removed empty line * Fix TypeSymbol issue and update baseline for tests
- Loading branch information
Showing
14 changed files
with
285 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleBodyCompletions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
[ | ||
{ | ||
"label": "for", | ||
"kind": "snippet", | ||
"detail": "for", | ||
"documentation": { | ||
"kind": "markdown", | ||
"value": "```bicep\n[for item in list: {\n\t\n}]\n```" | ||
}, | ||
"deprecated": false, | ||
"preselect": false, | ||
"sortText": "1_for", | ||
"insertTextFormat": "snippet", | ||
"insertTextMode": "adjustIndentation", | ||
"textEdit": { | ||
"range": {}, | ||
"newText": "[for ${2:item} in ${1:list}: {\n\t$0\n}]" | ||
} | ||
}, | ||
{ | ||
"label": "for-filtered", | ||
"kind": "snippet", | ||
"detail": "for-filtered", | ||
"documentation": { | ||
"kind": "markdown", | ||
"value": "```bicep\n[for (item, index) in list: if (condition) {\n\t\n}]\n```" | ||
}, | ||
"deprecated": false, | ||
"preselect": false, | ||
"sortText": "1_for-filtered", | ||
"insertTextFormat": "snippet", | ||
"insertTextMode": "adjustIndentation", | ||
"textEdit": { | ||
"range": {}, | ||
"newText": "[for (${2:item}, ${3:index}) in ${1:list}: if (${4:condition}) {\n\t$0\n}]" | ||
} | ||
}, | ||
{ | ||
"label": "for-indexed", | ||
"kind": "snippet", | ||
"detail": "for-indexed", | ||
"documentation": { | ||
"kind": "markdown", | ||
"value": "```bicep\n[for (item, index) in list: {\n\t\n}]\n```" | ||
}, | ||
"deprecated": false, | ||
"preselect": false, | ||
"sortText": "1_for-indexed", | ||
"insertTextFormat": "snippet", | ||
"insertTextMode": "adjustIndentation", | ||
"textEdit": { | ||
"range": {}, | ||
"newText": "[for (${2:item}, ${3:index}) in ${1:list}: {\n\t$0\n}]" | ||
} | ||
}, | ||
{ | ||
"label": "if", | ||
"kind": "snippet", | ||
"detail": "if", | ||
"deprecated": false, | ||
"preselect": false, | ||
"sortText": "1_if", | ||
"insertTextFormat": "snippet", | ||
"insertTextMode": "adjustIndentation", | ||
"textEdit": { | ||
"range": {}, | ||
"newText": "if (${1:condition}) {\n\t$0\n}" | ||
} | ||
}, | ||
{ | ||
"label": "required-properties", | ||
"kind": "snippet", | ||
"detail": "Required properties", | ||
"documentation": { | ||
"kind": "markdown", | ||
"value": "```bicep\n{\n\tname: \n\tparams: {\n\t\tarrayParam: \n\t\tobjParam: {\n\t\t}\n\t\tstringParamB: \n\t}\n\t\n}\n```" | ||
}, | ||
"deprecated": false, | ||
"preselect": true, | ||
"sortText": "2_required-properties", | ||
"insertTextFormat": "snippet", | ||
"insertTextMode": "adjustIndentation", | ||
"textEdit": { | ||
"range": {}, | ||
"newText": "{\n\tname: $1\n\tparams: {\n\t\tarrayParam: $2\n\t\tobjParam: {\n\t\t}\n\t\tstringParamB: $3\n\t}\n\t$0\n}" | ||
} | ||
}, | ||
{ | ||
"label": "{}", | ||
"kind": "snippet", | ||
"detail": "{}", | ||
"documentation": { | ||
"kind": "markdown", | ||
"value": "```bicep\n{\n\t\n}\n```" | ||
}, | ||
"deprecated": false, | ||
"preselect": true, | ||
"sortText": "2_{}", | ||
"insertTextFormat": "snippet", | ||
"insertTextMode": "adjustIndentation", | ||
"textEdit": { | ||
"range": {}, | ||
"newText": "{\n\t$0\n}" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.