How to Export ObjectScript From IRIS Server With VSCode?

Hi Developers!

A question to those who use VSCode to code InterSystems ObjectScript.

Suppose you have the ObjectScript code on IRIS server and you want to export it into the desired folder.

And you have VSCode connected to the server.

What is the way to tell VSCode that I want to export classes into some particular folder in /package/class.cls way?

E.g. into:

/project_folder/src/cls/Package/class.cls

and project_folder is opened in VSCode as the folder of the project.

  • 0
  • 0
  • 53
  • 2
  • 1

Respuestas

There is an option in the settings: "objectscript.export.addCategory",  when it's set to true, it will add categories for different file types.

In uppercase CLS for files "cls",  and RTN for "int", "mac", "inc".

The next coming version will support the way to have more control over it, where the left side for extension of a file, and the right part for a category name

"objectscript.export.addCategory": {
  "cls": "_cls",
  "mac": "_mac",
  "int": "_int",
  "inc": "_inc"
}

 

Perfect!

So, what is the setting of this parameter to export classes into:

/src/cls

folder?

There is one more option, is the root of sources, so, the final settings are

"objectscript.export.folder": "src",

"objectscript.export.addCategory": true

But it will be /src/CLS, not /src/cls, yet, until the next version.