We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b2112 commit 296b6abCopy full SHA for 296b6ab
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, {
@@ -178,4 +179,4 @@ function insertFileHeaderCommentOther(){
178
179
insertFileHeaderComment(val);
180
});
181
}
-exports.insertFileHeaderCommentOther = insertFileHeaderCommentOther;
182
+exports.insertFileHeaderCommentOther = insertFileHeaderCommentOther;
0 commit comments