Skip to content

Commit 810069f

Browse files
committed
adding 'filename' tag support
1 parent 49e5d1e commit 810069f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

command.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function insertFileHeaderComment(picked_template){
6464
'day': date.getDate(),
6565
'month': date.getMonth()+1,
6666
'year': date.getFullYear(),
67-
'company': 'Your Company'
67+
'company': 'Your Company',
68+
'filename': vscode.window.activeTextEditor.document.fileName.replace(/^.*[\\\/]/, '')
6869
};
6970

7071
replace = Object.assign(replace, {

0 commit comments

Comments
 (0)