Skip to content

Commit 246ef0f

Browse files
committed
Merge branch 'pr/10'
2 parents e8bfd9f + 296b6ab commit 246ef0f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

command.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ function insertFileHeaderComment(picked_template){
6262
'time': date.toLocaleTimeString(),
6363
'time24h': date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(),
6464
'year': date.getFullYear(),
65-
'company': 'Your Company'
65+
'company': 'Your Company',
66+
'filename': vscode.window.activeTextEditor.document.fileName.replace(/^.*[\\\/]/, '')
6667
};
6768

6869
replace = Object.assign(replace, {
@@ -180,4 +181,4 @@ function insertFileHeaderCommentOther(){
180181
insertFileHeaderComment(val);
181182
});
182183
}
183-
exports.insertFileHeaderCommentOther = insertFileHeaderCommentOther;
184+
exports.insertFileHeaderCommentOther = insertFileHeaderCommentOther;

0 commit comments

Comments
 (0)