Skip to content

Commit

Permalink
featurePath -> featuresPath
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Nov 28, 2016
1 parent 5ed7555 commit f194e25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Example:
]
```

* `gherkin-autocomplete.featurePath`
* `gherkin-autocomplete.featuresPath`
Relative path to features directory.
Type: String
Default value: `"features"`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"type": "array",
"default": []
},
"gherkin-autocomplete.featurePath": {
"gherkin-autocomplete.featuresPath": {
"description": "Relative path to features directory.",
"type": "string",
"default": "features"
Expand Down
12 changes: 6 additions & 6 deletions src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export class Global {
this.languages = this.cache.addCollection("Languages");
let rootPath = vscode.workspace.rootPath;
if (rootPath) {
let featurePath = String(vscode.workspace.getConfiguration("gherkin-autocomplete").get("featurePath"));
if (featurePath) {
if (!(featurePath.endsWith("/") || featurePath.endsWith("\\"))) {
featurePath += "/";
let featuresPath = String(vscode.workspace.getConfiguration("gherkin-autocomplete").get("featuresPath"));
if (featuresPath) {
if (!(featuresPath.endsWith("/") || featuresPath.endsWith("\\"))) {
featuresPath += "/";
}
}
featurePath += "**/*.feature";
let files = vscode.workspace.findFiles(featurePath, "", 1000);
featuresPath += "**/*.feature";
let files = vscode.workspace.findFiles(featuresPath, "", 1000);
files.then((values) => {
for (let value of values) {
this.addFileToCache(value);
Expand Down

0 comments on commit f194e25

Please sign in to comment.