To prevent VS Code from attempting to automatically log in to all workspace folders when using the InterSystems ObjectScript extension, you can adjust the configuration settings. The InterSystems Server Manager extension facilitates managing server connections, including signing in and storing credentials securely.
Disable Automatic Syncing of Local Changes:
Control Login Behavior for Specific Workspaces:
- Define individual workspace configurations in
.code-workspacefiles. Use these to specify only individual folders that require server access. For example:{ "folders": [ { "name": "SpecificServerNamespace", "uri": "isfs://server:namespace/" } ], "settings": {} } - This setup prevents global login attempts unless the specific workspace is explicitly opened 34.
- Define individual workspace configurations in
Work with Temporary Credentials:
Sign-out and Manage Trusted Extensions:
- Regularly manage signed-in accounts from the VS Code Accounts menu. You can sign out of any account to ensure the credentials are not auto-retrieved on subsequent VS Code launches. Additionally, restrict or manage extension access to InterSystems Server Credentials 5.
Using these approaches, you should be able to control when and how InterSystems connections are established when working with multiple workspaces in VS Code.
Sources:
- Log in to post comments