Skip to content

Commit

Permalink
Added GO statements after the heades and footers to ensure each state…
Browse files Browse the repository at this point in the history
…ment is properly isolated.
  • Loading branch information
Cobus Kruger committed Jul 20, 2018
1 parent 0a5b2ce commit 7ff3423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Combine Scripts",
"description": "Create a single combined script from several files.",
"icon": "icons/main-icon.png",
"version": "1.2.0",
"version": "1.3.0",
"publisher": "BateleurIO",
"repository": "https://github.com/BateleurIO/sqlops-combine-scripts.git",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions src/file-concat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ export class FileConcatenator {
this.items.push('* Start: ' + uri.fsPath);
this.items.push(`${this.line}*/`);
this.items.push(`print \'Start: ${uri.fsPath}\'`);
this.items.push('GO');
this.items.push('');
this.items.push(<string><any>data);
this.items.push('GO');
this.items.push(`/*${this.line}`);
this.items.push('* End: ' + uri.fsPath);
this.items.push(`${this.line}*/`);
this.items.push(`print \'End: ${uri.fsPath}\'`);
this.items.push('GO');
this.items.push('');
}
public getText() {
Expand Down

0 comments on commit 7ff3423

Please sign in to comment.