We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8bfd9f + 296b6ab commit 246ef0fCopy full SHA for 246ef0f
1 file changed
command.js
@@ -62,7 +62,8 @@ function insertFileHeaderComment(picked_template){
62
'time': date.toLocaleTimeString(),
63
'time24h': date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(),
64
'year': date.getFullYear(),
65
- 'company': 'Your Company'
+ 'company': 'Your Company',
66
+ 'filename': vscode.window.activeTextEditor.document.fileName.replace(/^.*[\\\/]/, '')
67
};
68
69
replace = Object.assign(replace, {
@@ -180,4 +181,4 @@ function insertFileHeaderCommentOther(){
180
181
insertFileHeaderComment(val);
182
});
183
}
-exports.insertFileHeaderCommentOther = insertFileHeaderCommentOther;
184
+exports.insertFileHeaderCommentOther = insertFileHeaderCommentOther;
0 commit comments