diff --git a/docs/vscode/gopherciser.code-snippets b/docs/vscode/gopherciser.code-snippets index 5e0f88cc..91421d7e 100644 --- a/docs/vscode/gopherciser.code-snippets +++ b/docs/vscode/gopherciser.code-snippets @@ -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\"", @@ -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}", ")", "", @@ -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 ***", "",