Alexey Maslov · Jun 21, 2021

Porting Server Side Source Control Menu items to VS Code: is it possible?


I've started active use ISC VS Code extensions about a half year ago, seem to be used to use, and started to enjoy them :)

The documentation promises the

    • integration with server-side source control etc

We were happy enough not to use, while used Studio Source Control menu to run some internal code checkup procedures. Is there any functional equivalent for this in VS Code: can I add custom menu items that should be backed with ObjectScript code to be started on server?

Product version: IRIS 2020.1
0 246
Discussion (12)3
Log in or sign up to continue

The only way to get it working right now is using ISFS. You can find the details on how to configure it here.

Just to add - I'm successfully using both source control and non-source control extensions (all using the %Studio.Extension framework) from VSCode. If there are specific issues you see, I'd be curious to hear about them.

Thank you all for the quick responses, but: from all the server-side source control functionality I used only the possibility to extent Studio's menu by adding items to the source control menu. E.g.

XData Menu
<Menu Name="%SourceMenu" Type="0">
<MenuItem Name="My item 1" Save="100"/>
<MenuItem Name="My item 2" Save="100"/>
<Menu Name="%SourceContext" Type="1">
<MenuItem Name="My item 1" Save="100"/>
<MenuItem Name="My item 2" Save="100"/>

Can I implement something similar with VS Code?

If you set up a server-side-editing workspace accessing a namespace for which your class is the source control class, you should see these buttons at the top of an open class or routine:

Also these entries on the document's context menu:

Each will open a quickpick top-centre of your window. The "Server Source Control..." one will show menuitems from the %SourceMenu and %SourceContext menus in your XData block. The "Server Command Menu..." will show menuitems from all other menus in that block.

Thank you, John,

the idea is good, while I'm still unhappy and need to dig more.

I should be more specific in formulating the question.
So, attempt #2:

  • We used server-side source control in Studio just for having additional menu items, not for source control itself;
  • Now, after switching to VSCode, we started using "normal" client-side source control based on GitLab;
  • What I want is to revive those additional menu items I was able to add using Studio.

...And I don't see how to achieve it as the server-side source control menu is only active on "server-side" WorkSpaces, while client-side source control is not available there. 

I'm not sticking to this way of adding menu items to VSCode, it just seemed that it will be the easiest one.

Now I see that how wrong I was. Any idea of how to add menu items (with associated server commands) would be appreciated.

Hi Alexey

It sounds like writing a simple VS Code Extension would be the right solution for this requirement.

We would be able to help you with this if you don't have the appropriate skills.


Hi George

I came to the same conclusion. The task is not too urgent, so we'd likely cope with it by our own means, but thanks anyway.

Thank you, John,

it sounds promising, while I've found only a facility of adding web links here. My case is a "plain" COS command line to execute. In the meanwhile, it seems that I've found a solution; if anybody is interested, I'll write a couple of words about it earlier.