go to post Brett Saviano · Apr 15, 2022 @Jonathan Lent Starting in IRIS 2020.1.2, 2021.1.1 and 2021.2 you can directly drill down into objects and see all of their properties during debugging. If a variable is an object, you will see its class name in grey next to it and an arrow to expand it like you would a folder in the VS Code file explorer view. This new feature is shown around timestamp 3:30 in this Learning Services produced video on debugging using VS Code.
go to post Brett Saviano · Apr 6, 2022 @Kari Vatjus-Anttila Can you please download and install the version of the extension found here and check if that fixes the issue? To install it you can drag it from your downloads folder into the extensions view in your VS Code window.
go to post Brett Saviano · Apr 6, 2022 We should re-write that line to use the regular http.proxyStrictSSL setting. The Language Server uses that setting in 2.0.1 EDIT: I opened PR #919 for this issue
go to post Brett Saviano · Mar 10, 2022 @Peter Steiwer If you're working server-side, you can add the "generated=1" query parameter to your folder URI to see generated files: https://intersystems-community.github.io/vscode-objectscript/serverside/...
go to post Brett Saviano · Feb 8, 2022 @Jeffrey Drumm Sorry, I assumed you were asking this in the context of CI. AFAIK the only way to do this is what I described. If you would like a way to do this using server-side editing, please file an enhancement request issue in the GitHub repo.
go to post Brett Saviano · Feb 8, 2022 @Jeffrey Drumm VS Code isn't a CI/CD tool so it wasn't specifically designed for this but it is doable if you're working client-side. You can export files from one namespace, change the namespace in your settings.json file and then import and compile.
go to post Brett Saviano · Feb 1, 2022 I'm sorry, I misread the end of your post.Can you please answer Julian's question below? If the class is saved then the formatter should work.
go to post Brett Saviano · Feb 1, 2022 You should install the InterSystems ObjectScript Extension Pack to get full support for ObjectScript in VS Code. The InterSystems Language Server provides formatting support. You can view our documentation here and the Language Server README here.
go to post Brett Saviano · Dec 8, 2021 Before SAM, there was no way to monitor Cache or IRIS using Prometheus out of the box. You had to implement the metrics exporter API yourself or use a community implementation like the one you linked. Since 2020.1, the /api/monitor API is provided by InterSystems out of the box. SAM uses this API to collect metrics and alerts from servers.
go to post Brett Saviano · Dec 8, 2021 @Michael Lei That is a community tool that predates SAM and is not supported by SAM. The /api/montior API that was developed for SAM (but can be used by any tool that consumes Prometheus metric format) is only included in IRIS 2020.1+.
go to post Brett Saviano · Nov 3, 2021 Yes, that's expected behavior. The vscode-objectscript extension defines the languages based on file extensions: { "id": "objectscript", "aliases": [ "ObjectScript" ], "extensions": [ ".mac", ".int" ] }, { "id": "objectscript-class", "aliases": [ "ObjectScript Class" ], "extensions": [ ".cls" ] }, { "id": "objectscript-macros", "aliases": [ "ObjectScript Include" ], "extensions": [ ".inc" ] }, { "id": "objectscript-csp", "aliases": [ "ObjectScript CSP" ], "extensions": [ ".csp", ".csr" ] },
go to post Brett Saviano · Nov 3, 2021 Hi Julian, I just opened up my VS Code (version 1.61.2 on Mac, latest version of all 3 extensions) and tried formatting a class and mac routine and it worked both times. Can you confirm that the Language Server extension is enabled? Also, what's the extension of the file that you're trying to format?
go to post Brett Saviano · Nov 3, 2021 @Julian Matthews The Language Server extension includes an ObjectScript formatter with the following features: Normalize the case of ObjectScript commands, system functions and system variables. Normalize the usage of short or long versions of ObjectScript commands, system functions and system variables. You can invoke it like any other formatter in VS Code. This VS Code doc page has more information on formatting in VS Code. The Language Server README has more info on its features and configuration settings.
go to post Brett Saviano · Jun 17, 2021 @Muhammad Waseem Atelier is deprecated. VS Code is the recommended IDE for new ObjectScript developers. See this post for details.
go to post Brett Saviano · Jun 17, 2021 @Michael Lei SAM (or standalone Prometheus) can only monitor IRIS version 2020.1 or later.
go to post Brett Saviano · May 26, 2021 Do you have the file exported to your local file system already? If not, then you'll have to set the serverSideEditing setting to true for the server copy that gets opened to be editable.
go to post Brett Saviano · May 26, 2021 @Dominic Chui Please try issue #2 again using LS version 1.1.6 and vscode-objectscript version 1.0.11. To diagnose issue #1, I'll need the text of the routine that you're seeing the "class does not exist" error in. Please submit an issue at https://github.com/intersystems/language-server/issues with a code sample.
go to post Brett Saviano · May 26, 2021 @Peter Steiwer This is fixed in LS version 1.1.6 and vscode-objectscript version 1.0.11. When using those versions, the LS will check if you have a local copy of the file before opening the server copy. See https://github.com/intersystems/language-server/issues/45