Réussi! - échec : 0, réussite : 2, ignorée(s) : 0, total : 2, durée : 444 ms
This commit is contained in:
17
.vscode/solution-explorer/template-parameters.js
vendored
Normal file
17
.vscode/solution-explorer/template-parameters.js
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
var path = require("path");
|
||||
|
||||
module.exports = function(filename, projectPath, folderPath) {
|
||||
var namespace = "Unknown";
|
||||
if (projectPath) {
|
||||
namespace = path.basename(projectPath, path.extname(projectPath));
|
||||
if (folderPath) {
|
||||
namespace += "." + folderPath.replace(path.dirname(projectPath), "").substring(1).replace(/[\\\/]/g, ".");
|
||||
}
|
||||
namespace = namespace.replace(/[\\\-]/g, "_");
|
||||
}
|
||||
|
||||
return {
|
||||
namespace: namespace,
|
||||
name: path.basename(filename, path.extname(filename))
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user