ownobjectscriptextension


OwnObjectScriptExtensionLogo

OwnObjectScriptExtension

A Visual Studio Code extension that supplies tools for InterSystems ObjectScript.

current release Visual Studio Marketplace Installs license stars last commit


Features

Open InterSystems Class Documentation

Remembering all your class names and their properties can be difficult. The Open InterSystems Class Documentation command makes it easy to access the documentation of any class. Simply place your cursor within a class name and execute the command. The command will automatically open the documentation of the class on the side or in your favorite browser.

png

Add Method Description

Writing comprehensive method descriptions is essential for maintaining code clarity and promoting collaboration. Simply place your cursor within a method and execute the Add Method Description command. The command will automatically generate a description template for the method, making it easy to provide meaningful documentation.

demoAddDescription

png

Tip: You can change the template with the Edit Method Description Template command.

Make Select Statement

When working with ObjectScript, you often need to interact with databases. The Make Select Statement feature simplifies the process of generating SQL SELECT statements. By analyzing the currently opened ObjectScript file, the extension creates a SELECT statement based on the class name.

demoMakeSelectStatement

Tip: Install the SQLTools extension to execute the statement directly within Visual Studio Code.

Create New Wizard BETA

Creating new ObjectScript classes, messages, business services, or business operations is made more convenient with the Create New Wizard feature. This wizard-like interface guides you through the process of generating new components, resembling the familiar InterSystems Studio Wizard. By executing the command and following the instructions, you can quickly set up new ObjectScript artifacts, saving you time and effort.

DemoCreateNewClass

This feature is currently in beta and may not work as expected. You may have to adjust the generated code.

Translate Embedded Python BETA

In certain scenarios, you may want to leverage the power of Python within your ObjectScript code. The Translate Embedded Python feature allows you to translate ObjectScript methods to embedded Python methods. By executing the command, the extension generates a new method with the same name, prefixed with py. This enables you to incorporate Python functionality while maintaining the structure and organization of your codebase.

demoTranslateEmbeddedPython

This feature is currently in beta and may not work as expected. You may have to adjust the generated code.


Requirements


Installation

Install from VSCode Marketplace

Install from GitHub

git clone https://github.com/intersystems-dach/ownobjectscriptextension C:\Users\<your-user>\.vscode\extensions\ownobjectscriptextension

or download the latest realease and extract the file into ~/.vscode/extensions.


Workspace

This extension will create a directory named ownobjectscriptextension-workspace in the same directory as the extension. The workspace contains all files, so your changes in those files will not be lost when installing a new version.


Commands

Own ObjectScript Create

Own ObjectScript Modifier

Tip: Lines starting with a keyword will be ignored by the command Add ObjectScript Modifier.

Own ObjectScript Documentation

Own ObjectScript SQL

Own ObjectScript Translate


Configuration

Go to File > Preferences > Settings and than navigate to Extensions > OwnObjectscriptExtension.

Sql

Comment

Create

Documentation


Color Theme

The extension will add a new color theme called InterSystems Real Dark. You can change it via File > Preferences > Theme > Color Theme.

InterSystemsRealDarkExample


Bugs


Release Notes

v0.0.18


View on Marketplace.


by Philipp B.

powered by InterSystems.

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.