Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from jamesharris-garmin/fix-snippets
Browse files Browse the repository at this point in the history
Fix typo in sce and sco snippets
  • Loading branch information
dialex authored Sep 9, 2019
2 parents 75ac7ff + 34b371d commit 9b4ec63
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
34 changes: 34 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Editor Config File
# Top-most EditorConfig file
root = true
# Rules that apply to all files
[*]
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

# for shell scripts always use lf line endings
[*.{sh,bash}]
end_of_line = lf
indent_size = 4

# For shell scripts on windows:
[*.{bat,cmd,ps1}]
end_of_line = crlf

# Vscode likes json to use tabs typically
[*.{json,code-workspace}]
indent_style = tab

# this one has space based indentation
[package.json]
indent_style = space

# Build and output files shouldn't use editorconfig
# Turn off all settings for output files.
[**/{node_modules,out,dist}/**/*]
charset = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install:
- ./ci-install.sh

script:
- ./ci-build.sh
- ./ci-build.sh

notifications:
email:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cucumber",
"version": "0.11.5",
"version": "0.12.0",
"engines": {
"vscode": "^0.10.0"
},
Expand Down Expand Up @@ -63,4 +63,4 @@
}
]
}
}
}
8 changes: 5 additions & 3 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"description": "When Step (Plaintext)",
"scope": "text.gherkin.feature"
},
"giv-rb": {
"giv-rb": {
"prefix": "giv",
"body": "Given ${1:step name} do\r\n $0\r\nend",
"description": "Given Step (Ruby)",
Expand All @@ -28,7 +28,8 @@
"body": ["Scenario Outline: ${1:title}",
"\tGiven ${2:context}",
"\tWhen ${3:event}",
"\tThen ${4:outcome}"],
"\tThen ${4:outcome}\r\n",
"$0"],
"description": "Scenario Outline",
"scope": "text.gherkin.feature"
},
Expand All @@ -37,7 +38,8 @@
"body": ["Scenario: ${1:title}",
"\tGiven ${2:context}",
"\tWhen ${3:event}",
"\tThen ${4:outcome}\r\n$0\r\n$0"],
"\tThen ${4:outcome}\r\n",
"$0"],
"description": "Scenario",
"scope": "text.gherkin.feature"
},
Expand Down

0 comments on commit 9b4ec63

Please sign in to comment.