mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-28 04:08:05 +00:00
vscode: automate headers
This uses the psi-header extension to automate the creation and maintenance of source code file headers.
This commit is contained in:
Vendored
+5
-1
@@ -3,7 +3,11 @@
|
||||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
||||
|
||||
// List of extensions which should be recommended for users of this workspace.
|
||||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"],
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
"psioniq.psi-header"
|
||||
],
|
||||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
||||
"unwantedRecommendations": []
|
||||
}
|
||||
|
||||
Vendored
+33
-1
@@ -19,5 +19,37 @@
|
||||
"javascriptreact",
|
||||
"typescript",
|
||||
"typescriptreact"
|
||||
]
|
||||
],
|
||||
"psi-header.config": {
|
||||
"forceToTop": true,
|
||||
"blankLinesAfter": 1,
|
||||
"spacesBetweenYears": false,
|
||||
"license": "MIT",
|
||||
"copyrightHolder": "The Pybricks Authors",
|
||||
"creationDateZero": "now"
|
||||
},
|
||||
"psi-header.templates": [
|
||||
{
|
||||
"language": "*",
|
||||
"template": [
|
||||
"SPDX-License-Identifier: <<spdxid>>",
|
||||
"Copyright (c) <<yeartoyear(fc!P,now)>> <<copyrightholder>>"
|
||||
]
|
||||
}
|
||||
],
|
||||
"psi-header.lang-config": [
|
||||
{
|
||||
"language": "*",
|
||||
"begin": "",
|
||||
"end": "",
|
||||
"prefix": "// "
|
||||
}
|
||||
],
|
||||
"psi-header.changes-tracking": {
|
||||
"isActive": true,
|
||||
"autoHeader": "manualSave",
|
||||
"enforceHeader": true,
|
||||
"include": ["scss", "typescript", "typescriptreact"],
|
||||
"replace": ["Copyright"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user