diff --git a/README.md b/README.md index 42c9662d..27ec1f52 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ Adds functionality to assist in writing accurate, readable and consistent RPGLE, including: -* Content assist -* Outline view -* Linter, including indentation checking and reformatting (`**FREE` only) -* Column assist for fixed-format RPGLE. +- Content assist +- Outline view +- Linter, including indentation checking and reformatting (`**FREE` only) +- Column assist for fixed-format RPGLE. Depends on the Code for IBM i extension due to source code living on the remote system when developing with source members. @@ -37,8 +37,9 @@ To run debug the extension and server, from the VS Code debugger: Thanks so much to everyone [who has contributed](https://github.com/halcyon-tech/vscode-rpgle/graphs/contributors). -* [@worksofliam](https://github.com/worksofliam) -* [@SJLennon](https://github.com/SJLennon) -* [@sebCIL](https://github.com/sebCIL) -* [@p-behr](https://github.com/p-behr) -* [@chrjorgensen](https://github.com/chrjorgensen) +- [@worksofliam](https://github.com/worksofliam) +- [@SJLennon](https://github.com/SJLennon) +- [@sebCIL](https://github.com/sebCIL) +- [@p-behr](https://github.com/p-behr) +- [@chrjorgensen](https://github.com/chrjorgensen) +- [@sebjulliand](https://github.com/sebjulliand) diff --git a/schemas/rpgle.code-snippets b/schemas/rpgle.code-snippets index 824843b4..1ab827ab 100644 --- a/schemas/rpgle.code-snippets +++ b/schemas/rpgle.code-snippets @@ -12,6 +12,7 @@ // ], // "description": "Log output to console" // } + // See the full snippet syntax description here: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax "if": { "prefix": "if", "description": "If block", @@ -865,5 +866,20 @@ "%years(${1:number})" ], "description": "%YEARS converts a number into a duration that can be added to a time or timestamp value. %YEARS can only follow the plus or minus sign in an addition or subtraction expression. The value before the plus or minus sign must be a time or timestamp. The result is a time or timestamp value with the appropriate number of years added or subtracted. For a time, the resulting value is in *ISO format." - } + }, + "Main": { + "prefix": "main", + "body":[ + "**FREE", + "Ctl-Opt Main(${1:${TM_FILENAME_BASE/([^\\.]+).*/${1:/upcase}/}});", + "", + "Dcl-Proc $1;", + " Dcl-Pi *N EXTPGM;", + " End-Pi;", + "", + " $0", + "End-Proc;" + ], + "description":"No cycle RPGLE program template" + } } \ No newline at end of file