From d90d404f4c29c4cb41ad8f3885819b92a1a3dc60 Mon Sep 17 00:00:00 2001 From: Seb Julliand Date: Fri, 10 Feb 2023 14:56:57 +0100 Subject: [PATCH 1/2] Added URL to snippet documentation --- schemas/rpgle.code-snippets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schemas/rpgle.code-snippets b/schemas/rpgle.code-snippets index 824843b4..4a192f32 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,6 @@ "%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." - } + }, + } \ No newline at end of file From 1a0d49c1d617aea32a83e887a0b542bb936acecc Mon Sep 17 00:00:00 2001 From: Seb Julliand Date: Fri, 10 Feb 2023 15:13:02 +0100 Subject: [PATCH 2/2] Added "No cycle RPGLE template snippet" --- README.md | 19 ++++++++++--------- schemas/rpgle.code-snippets | 16 +++++++++++++++- 2 files changed, 25 insertions(+), 10 deletions(-) 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 4a192f32..1ab827ab 100644 --- a/schemas/rpgle.code-snippets +++ b/schemas/rpgle.code-snippets @@ -867,5 +867,19 @@ ], "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