Do you use client-side editing in VS Code? We want your feedback on the latest improvements!
Since our previous announcement, we have introduced several incremental improvements to the client‑side editing experience in VS Code. These updates focus on preserving developer‑authored formatting when synchronizing with the server.
What Changed
Client‑side *.cls files previously lost certain formatting details during compilation, including keyword casing (e.g., classmethod → ClassMethod), normalization of blank lines between class members, and removal of line breaks within parameter lists. The extension now separates formatting from the synchronization process so that user-defined formatting is retained.
In the typical client‑side workflow, only the Storage sections of classes are updated by the server. The recent changes ensure that synchronization updates only these sections, preventing unnecessary modifications to the rest of the file.
A new configuration option has been added: refreshClassesOnSync : boolean = false. By default, only the storage sections are refreshed after synchronization, preserving all other content, including formatting. Setting this value to true restores the previous behavior of refreshing the full class file.
Try and Provide Feedback
vscode-objectscript-3.6.1-storage.1.vsix.zip
- Download the zipped VSIX file and unzip it.
- Install the VSIX in VS Code using the standard extension installation instructions or by dragging the file into the Extensions view.
- Follow your normal development workflow and evaluate the updated behavior. Please share your experience either here or in the associated GitHub pull request.
Comments
Great work, KC!
Hi @KC Lu - I have been using a local repo that connects to a server remotely, and it works great! Things update simultaneously. The only specific part that always asks me for mismatches is the Storage section on %Persistent classes, as you're mentioning. I will try to use the refreshClassesOnSync config and see if that fixes it. Additionally, where can I find all the configuration options for my .vscode/settings.json related to "objectscript.conn": ?
Hi @Juan Mota Sanchez, thanks for trying this out! Our documentation has a reference page listing all settings in the official extensions. refreshClassesOnSync won't appear there though because KC's change hasn't been released yet. You can also see al settings in the VS Code Settings UI.
https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_settings
Thanks!