Skip to content

Commit

Permalink
fix wrong contructor keyword placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Okhrimenko committed Aug 18, 2020
1 parent d0cd9cf commit c2c11d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.0.5

- Fix wrong contructor keyword placement

## 0.0.4

- Avoiding duplicate inputs
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "arrr",
"displayName": "arrr",
"description": "The extension provides refactoring tools for your Angular codebase",
"version": "0.0.4",
"version": "0.0.5",
"publisher": "obenjiro",
"engines": {
"vscode": "^1.47.0"
Expand Down
3 changes: 2 additions & 1 deletion src/modules/extract-to-folder-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export function getComponentText(componentName: string, targets: string[]): stri
styleUrls: ['./${componentName}.component.css']
})
export class ${pascalCase(componentName)}Component {
${targets.map((target) => `@Input() ${target}`).join('\n ')}constructor () {}
${targets.map((target) => `@Input() ${target}`).join('\n ')}
constructor () {}
}`;
}

Expand Down

0 comments on commit c2c11d6

Please sign in to comment.