Skip to content

Commit

Permalink
minor changes to vscode snippet (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
DnlLrssn authored Sep 20, 2024
1 parent 9e3f6d7 commit 6d72e4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/vscode/gopherciser.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"prefix": "action",
"description": "Adds scenario action skeleton, to be used in an empty file. Action needs to be registered after completion.",
"body": [
"package ${3:scenario}",
"package ${2:scenario}",
"",
"import (",
"\t\"github.com/qlik-oss/gopherciser/action\"",
Expand All @@ -13,9 +13,9 @@
")",
"",
"type (",
"\t// ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Settings ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} ${2:describe action here}",
"\t// ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Settings ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} ${3:describe action here}",
"\t${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Settings struct {",
"\t\tParameter string `json:\"parameter\" displayname:\"Parameter\" doc-key:\"path.to.description\"`",
"\t\t${4:Parameter} string `json:\"parameter\" displayname:\"Parameter\" doc-key:\"path.to.description\"`",
"\t}",
")",
"",
Expand All @@ -28,7 +28,7 @@
"}",
"",
"// Execute ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Settings action (Implements ActionSettings interface)",
"func (settings ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Settings) Execute(sessionState *session.State, actionState *action.State, connection *connection.ConnectionSettings, label string, reset func()) {",
"func (settings ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Settings) Execute(sessionState *session.State, actionState *action.State, connectionSettings *connection.ConnectionSettings, label string, reset func()) {",
"",
"\t// *** Add actual user simulation here ***",
"",
Expand Down

0 comments on commit 6d72e4e

Please sign in to comment.