Language Configuration for ObjectScript CSPs
The InterSystems ObjectScript Extension provides language support for
classes and routines, but not Caché Server Pages.
This extension implements a language configuration for them, adding expected features like auto-closing brackets and quotes.
Features
- Auto-closing brackets and quotes, as well as
#()#, #server(), and #call()
- Wrapping code with brackets
- Smart Indentation: Indenting on enter in for loops, if statements, HTML tags, etc.
- Comment toggling: Commenting out a code line or block with Ctrl + /
Requirements
This extension is designed to work alongside the official InterSystems ObjectScript Extension.
Recommendations
For auto-closing tags, it is recommended to install Auto Close Tag. To enable support for CSP files, follow these steps:
Press Ctrl + ,
Enter auto-close-tag in the search bar
Find Auto-close-tag: Activate On Language
Click Edit in settings.json
Add "objectscript-csp" to the list
In some cases, such as CSP:CLASS, the tag is not meant to be closed. To prevent
the default behaviour, you can exclude them in the settings.
Follow steps 1-2 above and then:
Find Auto-close-tag: Excluded Tags
Click Edit in settings.json
Add the tag to the list (IMPORTANT: the tag needs to be lowercase to work)
| |