VS Code connection using prefix
Hi,
Is there a way to include a prefix for the instance name in the server connection? I have 1 server with multiple iris instances, using 1 webserver. Each instance can be reached using a prefix in the url: (for example https://localhost/instance1/...).
I want to use VS code remote, but can't add the prefix to the hostname (or ip), and also not to the port, as this is numeric. Any idea how to solve this?
Comments
In the intersystems.servers object in your settings JSON you can add a pathPrefix property within the webServer object of your connection definition. In your example:
"intersystems.servers": {
...
"server1": {
"webServer": {
"host": "localhost",
"port": 443,
"scheme": "https",
"pathPrefix": "/instance1"
}
},
...
}Suggest try Edit in settings.json
"pathPrefix": "/[Instance Name]",
For example:
"intersystems.servers": {
"test1": {
"webServer": {
"scheme": "http",
"pathPrefix": "/IRIS",
"host": "localhost",
"port": ...
}
}
}
It won't necessarily be the instance name, depending on how the external web server has been set up.
Documentation at https://intersystems-community.github.io/vscode-objectscript/configurat… has now been updated to include this information.