go to post John Murray · Feb 11 Your screenshot shows the ObjectScript Explorer view, which was originally created for the client-side development paradigm in which you export to a folder on your workstation the routines/classes/etc you want to change, then manage them locally in Git. You then import your changes to the server that your `objectscript.conn` setting points to (the same place you may have exported them from). In this case you can expand the Routines node of the tree shown in your screenshot, then with focus on that tree press Ctrl+Alt+F to invoke VS Code's tree search/filter widget. Here's a screenshot of me using this to narrow down the large number of INT routines in a VistA namespace: The other development paradigm (server-side) may suit you better if you are migrating from InterSystems Studio. In that paradigm, use the Servers view (at the bottom of your screenshot) to expand the Namespaces node of your server. Then use the pencil or the eye button to add to your VS Code workspace a folders that gives you direct access to the namespace (pencil if editing, eye if only viewing as read-only). Also follow the instructions in the README of the InterSystems ObjectScript extension to enable proposed APIs. Then type Ctrl+P and start entering the name of the routine you want: You can also use the Ctrl+Alt+F tree widget on the VS Code Explorer view of your workspace.
go to post John Murray · Jan 29 There are some PDF links in https://docs.intersystems.com/ens201817/csp/docbook/Doc.View.cls?KEY=GDO...
go to post John Murray · Nov 8, 2024 When you HALT from a Lite terminal it closes. The PS terminal you are seeing will have been already open when you originally launched the Lite one. I think there's a VS Code setting that would enable you to make Lite terminal the default type that the + button on Terminal toolbar creates.
go to post John Murray · Oct 14, 2024 See the Path Prefix element of the definition. https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls...
go to post John Murray · Sep 19, 2024 Currently the workaround is to downgrade your VS Code to 1.92.2. More info here: https://code.visualstudio.com/docs/supporting/faq#_how-do-i-opt-out-of-v...
go to post John Murray · Sep 19, 2024 Please follow this issue: https://github.com/intersystems-community/vscode-objectscript/issues/1428
go to post John Murray · Aug 2, 2024 Not with Studio, but if you use VS Code, enable proposed APIs, and create a multi-root workspace with one folder for each namespace then I think you can search across them all.
go to post John Murray · Aug 2, 2024 I expect the IRIS Portal URLs for these two instances look like this: http://localhost/iris/csp/sys/UtilHome.csp http://localhost/iris2/csp/sys/UtilHome.csp In that case, use the bold section as the "pathPrefix" property within the "webServer" object in the server's entry in the "intersystems.servers" settings object. When setting up a connection definition step-by-step this part is referred to as Path prefix of instance. See https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls...
go to post John Murray · Jul 21, 2024 You are trying to create your test entities in InterSystems library packages that are mapped to/from a readonly database.
go to post John Murray · Jul 19, 2024 I think it's possible to do this using our Yuzinji tool. Here's my idea: Go to https://structure101.com/downloads/, fill in your details, and download Structure101g Studio (S101g) for your desktop platform (one of the 3 icons circled red below): Read the instructions in https://structure101.com/help/generic/flavors/yuzinji/index.pdf to install Yuzinji into S101g, then to add Yuzinji's server-side component to your InterSystems server. Analyze all your classes and load the results into Structure101g Studio. But how to identify which deprecated methods or classes are being referenced? S101g has facility for tagging items on its diagrams. Its "Tag" menu can also export and import a list of tags. Tag an arbitrary class and an arbitrary method. Export your tags. Examine the file. Write a SQL query to list deprecated classes: select ID from %Dictionary.ClassDefinition where deprecated=1 order by ID Format the output to match the structure of the exported tags file, and write this to a file. I'm leaving this as an exercise for the reader. Import the file into S101g Repeat previous steps to create a tags file for deprecated methods. Explore your diagrams to pinpoint the tagged (and therefore deprecated) items.
go to post John Murray · May 21, 2024 Your code is writing its message to the principal device of the process spawned to handle your Studio session. That is the TCP/IP device which Studio is reading from, so it gets confused by the unexpected message.
go to post John Murray · May 15, 2024 Perhaps your IRIS environment's SetZEOF setting has been altered from the default. See https://docs.intersystems.com/iris20241/csp/docbook/Doc.View.cls?KEY=RCO...
go to post John Murray · May 8, 2024 These Code Actions are contributed by the InterSystems Language Server extension. To request improvements please open issues at https://github.com/intersystems/language-server/issues The presence of the VS Code lightbulb is controllable with the editor.lightbulb.enabled setting, which can be set per-language if you wish. For example, in Settings Editor use this filter to alter the setting at user-level or workspace-level only for ObjectScript classes. @lang:objectscript-class editor.lightbulb.enabled
go to post John Murray · May 8, 2024 The Deltanji extension is fully compatible with the InterSystems ObjectScript extension. It is only the Serenji one whose debugging component clashes.
go to post John Murray · Apr 24, 2024 when I want to do something that I know that a predefined function already does, how can I get inspiration from its code When the product isn't Open Source, you probably can't.
go to post John Murray · Apr 12, 2024 So the section titled For users with IRIS Versions Prior to 2023.2 working on their local machine should suit you.
go to post John Murray · Apr 11, 2024 The set of snippets was recently reduced. Please see https://github.com/intersystems-community/vscode-objectscript/issues/1234 for an explanation.
go to post John Murray · Feb 9, 2024 It looks like you used VS Code to directly open the folder (C:\InterSystems\IRIS\CSP\goerke\) which your (local desktop instance) IRIS created for the /csp/goerke webapp it configured when you added a GOERKE namespace using IRIS Portal. I think this is going to get confusing for you, particularly if you try to use documentation or training material. Here's what I recommend you do: 1. Close your the folder in VS Code. 2. Copy your C:\InterSystems\IRIS\CSP\goerke into a folder where you will edit your source files, and perhaps in future source-control them with Git. For example, copy it to c:\MyProjects 3. Open the newly-created folder in VS Code (e.g. c:\MyProjects\goerke) 4. Reconfigure your /csp/goerke webapp in IRIS Portal so it points again to C:\InterSystems\IRIS\CSP\goerke 5. Delete all contents of C:\InterSystems\IRIS\CSP\goerke (files and folders), since you already have a copy of these in c:\MyProjects\goerke Now when you edit a CSP file in VS Code and save it under c:\MyProjects\goerke\src a copy of it will appear in C:\InterSystems\IRIS\CSP\goerke and the /csp/goerke webapp will use this. When you edit a CLS file in VS Code, saving this writes the class into the GOERKE namespace but doesn't create a file under C:\InterSystems\IRIS\CSP\goerke because IRIS classes live in IRIS databases, not in host OS files.