-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Type: Feature Request
Summary
The current Export Project Contents experience is confusing and fragile. It appears to work only when the active server connection is defined in the .code-workspace file. If the same connection is configured in a .vscode/settings.json, the command often refuses to run, reporting that there are “no folders in the current workspace that code can be exported to,” even though a folder is opened and the server connection is active. This has caused frustration across multiple users and community threads. [1]
Beyond the connection requirement, the command is only discoverable via the Projects explorer context menu, which is not visible unless at least one server-side virtual folder exists in the current multi-root workspace.
Making export a first-class, standalone command (Command Palette) would remove this dependency and significantly improve usability.
What is the reason for tying the visibility of the Projects Explorer to the existence of server‑side virtual folders in the workspace in the first place?
Steps to Reproduce
- Open a folder as your workspace root in VS Code.
- Configure a valid InterSystems IRIS server connection in
.vscode/settings.jsonand connect to a namespace. You can browse server items and compile, confirming the connection is active. - Open the InterSystems Projects Explorer view, right‑click a project, and choose 'Export Project Contents'.
- Observe the error: “There are no folders in the current workspace that code can be exported to.” (despite having an open folder and an active connection).
Note: If you move the identical server connection definition into the
.code-workspacefile, the export suddenly works. This dependency on where the connection is declared is unexpected and undocumented. (see post in community https://community.intersystems.com/post/how-export-project-visual-studio-code#comment-284848)
Why This Matters
- The extension already positions export/import and client-side editing as core workflows, and many users keep their server connections in settings.json. Tying export success to the location of the connection definition makes the feature feel brittle and “random.”
- Community posts show multiple users running into the “no folders in current workspace” error even with a proper folder opened, leading to confusion and workarounds. [1][2]
- The repo history shows ongoing efforts to make Studio project export easier (e.g. Add command to export Studio project contents #894 and related PRs/discussions), so relaxing the connection-declaration constraint and surfacing a top-level command aligns with that direction.
Workaround (for others hitting this)
- Temporarily move the server connection definition into
.code-workspaceand retry export; then move it back if needed. - Alternatively, use ObjectScript: Export Code from Server and/or ObjectScript: Export Documents to XML File, but those routes are less ergonomic for project-based exports.
--
[1] https://community.intersystems.com/post/how-export-project-xml-file-deploy-visual-studio-code
[2] https://community.intersystems.com/post/how-export-project-visual-studio-code
Extension version: 3.4.0
VS Code version: Code 1.108.2 (c9d77990917f3102ada88be140d28b038d1dd7c7, 2026-01-21T13:52:09.270Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2