Question
· 10 hr ago

VSCode auto complete and show class methods while typing

So being forced to use VSCode out of the box for a new Community install I've hit a small problem, documentation hasn't helped and its a simple problem.

How do I enable auto complete and the property viewer in creating a new .MAC?

 

So I've created "test.mac" and 'assume' can't remember the method name to open a file (for example), typing

"s f=##class(%Library.File).   " in Studio would bring up the methods of %Library.File so I could click the appropriate one, VSCode does not do this (and also didn't show the classes under %Library).

Please don't reply telling me how to open a new file :-), I'm looking for how to enable the property/method viewer while typing.

 

The constant VSCode colours everywhere are like being stuck in a psycodelic firework display.

Product version: IRIS 2024.1
Discussion (5)1
Log in or sign up to continue

@Paul Hula 
Do you have in the InterSystems ObjectScript Extension Pack installed? The InterSystems Language Server provides autocomplete support for class names and class members. If you already have the extensions installed and are still experiencing this issue then you probably don't have a server connection configured. The documentation for doing so can be found here.

VS Code allows you to change the colors used in the editor via Themes. Documentation is here. If you're on Windows you can also load your custom colors from Studio using the "Load Studio Syntax Colors" command.

I'm using server-side editing.  I followed the steps you showed, I have authentication saved, i can browse and see namespace classes etc without issue, but auto complete doesn't auto complete.

I appreciate Studio is depreciated and the world loves VSCode because its saves ISC time and money but please can someone release a hook to the old studio even if isn't maintained.

I can't say more as I really don't want my community account banned again for 'criticising' ISC...

Studio is still available from the WRC as an independent download. See this DC post for more details. I am happy to help you get VS Code working, but to know what is wrong I will need to see your code-workpsace file, server connection info and possibly a network trace since VS Code talks to IRIS via HTTP(S). If you're more comfortable doing that in private you can open a WRC case and they will help you. You can link this post there so they have more context. This feature has existed in VS Code for 4.5+ years so I think there's some sort of configuration issue and not a product defect. Also, any feedback on how we can make VS Code better can be communicated to WRC, your account team, or by posting an issue on GitHub.