Using the Intersystems ObjectScript plugin, how can I automatically import to the server when I delete the code file locally on my client machine?
I have installed three plugins on VS Code: Intersystems Language Server: v2.3.6, Intersystems ObjectScript: v2.10.5, and Intersystems Server Manager: v3.6.2. I connected to the Caché database and connected a workspace to the InterSystems server. Then I edited the code locally on my client machine. However, only modifying the code and adding new code files allow for automatic updates on the server after executing "import without compilation." Deleting code files does not achieve this; I need to return to Explorer to delete them, and then the code files can only be truly deleted on the server side through Studios.
llke this
VS-Code will not delete on server. you need either to do that from studio, or use the d $System.OBJ.Delete() on terminal
@LI LINFENG
The vscode-objectscript extension does not support this yet, but an enhancement that adds this feature is currently under review. You can read more about it, and download a version of the extension to test the enhancements with, on this DC post.
@LI LINFENG
I also noticed that versions of the extensions that you have are very old. You should make sure VS Code and its extensions are able to auto-update so you can take advantage of bug fixes and new features.
Thank you very much for your support. Since my VS Code version is quite old and I cannot install the newer version on Windows Server 2012, the version of the Intersystems ObjectScript plugin I am using is also relatively old.
If possible, you should use VS Code on a developer laptop that can be kept up to date instead of the server that IRIS/Cache is running on. The extension versions you are using are well over a year old and you'll be missing out on major new features, like the one you requested in this post. VS Code can connect to servers that are on a different machine.