Compile ObjectScript with SublimeText3
In addition to IntelliJ IDEA, it's now possible to configure SublimeText3 to be able to compile code there too. And what you will need is just the language server I did.
- Download the latest version of this Language Server from releases page, extract it somewhere
- Install Package-Control in SublimeText3
- Install Syntax Highlighting for ObjectScript
- In SublimeText in command pallette enter
Package Control: Add Repository
- Put this link: https://github.com/intersystems-community/ObjectScript.tmBundle
Package Control: Install Package
search forObjectScript
, install it
- In SublimeText in command pallette enter
- Install LSP plugin
Package Control: Install Package
search forLSP
(exact name), install it
-
Menu
Preferences -> Package Settings -> LSP -> Settiings
- Update settings file, to make it something like below, in
command
set the correct path to extracted Language Server executable for your platform{ "clients": { "intersystems": { "enabled": true, "command": [ "PATH/TO/intersystems-ls" ], "languages": [ { "scopes": [ "source.objectscript" ], "languageId": "objectscript", "syntaxes": [ "Packages/ObjectScript.tmBundle/Syntaxes/objectscript.tmLanguage" ] }, { "scopes": [ "source.objectscript_class" ], "languageId": "objectscript_class", "syntaxes": [ "Packages/ObjectScript.tmBundle/Syntaxes/objectscript-class.tmLanguage" ] } ] } } }
- Configure access to IRIS
"LSP": { "intersystems": { "settings": { "objectscript": { "conn": { "active": true, "host": "localhost", "ns": "USER", "superPort": 1972, "username": "_SYSTEM", "password": "SYS" } } } } }
- Update settings file, to make it something like below, in
- Command Palette,
LSP: Toggle Log Panel
should show messages after save of changed files
If you like it, please vote for the IntelliJ IDEA Plugin, which uses this Language Server as well.
That’s interesting, somebody dislike that new ability?
With this language server in fact, it’s possible to add the ability to compile ObjectScript code to any editor which got the support for Language Server Protocol, and it includes even vim/neovim, emacs, and some other editors. If you would like to add this to any supported editor and need help, contact me.