Add custom file types in Visual Studio Code
If you have work with file types other than the default types provided, you can add additional file types to your instance and edit them in ServiceNow extension for Visual Studio Code.
Avant de commencer
Role required: admin
Procédure
Exemple
The following is an example for
app.config.json
"CustomFileTypes": {
"sc_ic_aprvl_type_defn": {
"superCoverName": "Miscellaneous",
"coverName": "Approval Type Definition",
"tags": {
"approver_script": "js",
"approver_html”: "html",
}
}
}
}- superCoverName is a name of the super parent directory (Should always pointtoMiscellaneous).
- coverName is a descriptive name of the table.
- sc_ic_aprvl_type_defn is a table identifier.
- tags represent the set of scriptable columns in the table
- approver_script is a name of the table column / xml tag
- js is an extension of the file (js | html | css | json)