Skip to content

Commit 4731c8a

Browse files
Add a 'Main Procedure' file template
And transform the package snipper into a file template too. This has for effect to show these two snippets when running the 'Snippets: Fill File with Snippet' VS Code command, which is how VS Code provides file templates. For eng/ide/ada_language_server#1515
1 parent 9633c6f commit 4731c8a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

integration/vscode/ada/ada-snippets.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@
139139
"body": ["loop", "\t$0", "end loop;"],
140140
"description": "Loop Statement"
141141
},
142+
"Main Procedure": {
143+
"prefix": "procedure",
144+
"body": ["procedure ${2:Name} is", "\t$4", "begin", "\t$0", "end ${2:Name};"],
145+
"description": "Main Procedure",
146+
"isFileTemplate": true
147+
},
142148
"Operator Declaration": {
143149
"prefix": "operator",
144150
"scope": "ada",
@@ -167,7 +173,8 @@
167173
"private",
168174
"end ${2:Name};"
169175
],
170-
"description": "Package Declaration or Body"
176+
"description": "Package Declaration or Body",
177+
"isFileTemplate": true
171178
},
172179
"Pragma Directive": {
173180
"prefix": "pragma",

0 commit comments

Comments
 (0)