Skip to content

Commit

Permalink
fix wrapData.txt concat prefix (Fixes #5)
Browse files Browse the repository at this point in the history
update package version
  • Loading branch information
midnightsyntax committed May 22, 2018
1 parent 9433e7b commit a78a7f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

# CHANGELOG

## 1.6.2
##### 2018-05-22

### Fixed

- ([Issue #5](https://github.com/midnightsyntax/vscode-wrap-console-log/issues/5)) Prefix not being used when using any of the following commands:
- Wrap prefix
- Wrap down prefix
- Wrap up prefix

---

## 1.6.1
##### 2018-02-13

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/midnightsyntax/vscode-wrap-console-log"
},
"version": "1.6.1",
"version": "1.6.2",
"publisher": "midnightsyntax",
"icon": "images/icon.png",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function handle(target: Wrap, prefix?: boolean, input?: boolean, formatAs?: Form
}
})
} else {
wrapData.txt = wrapData.txt.replace('$txt', item);
wrapData.txt = "console.log('".concat(wrapData.item, "', ", wrapData.item ,");");
resolve(wrapData)
}
} else {
Expand Down

0 comments on commit a78a7f2

Please sign in to comment.