intersystems-community / vscode-objectscript

InterSystems ObjectScript extension for Visual Studio Code
https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO
Other
108 stars 50 forks source link

Enable isfs workspace folders to access container instances of IRIS that use dynamic host port assignment #1168

Open gjsjohnmurray opened 1 year ago

gjsjohnmurray commented 1 year ago

Related to https://github.com/intersystems-community/intersystems-servermanager/issues/187

gjsjohnmurray commented 1 year ago

This is already possible as long as your workspace also has a client-side folder. I intentionally gave the folder an uppercased name in the example below so that when it appears in the isfs reference it doesn't look like a server name (as those can't contain uppercase).

.code-workspace file:

{
    "folders": [
        {
            "name": "Project",
            "path": "."
        },
        {
            "name": "IRIS Server",
            "uri": "isfs://Project/"
        }
    ],
    "settings": {
    }
}

.vscode/settings.json file:

{
  "objectscript.conn" :{
    "active": true,
    "docker-compose": {
      "service": "iris",
      "internalPort": 52773
    },
    "ns": "USER",
    "username": "SuperUser",
    "password": "SYS"
  },
}
dpaganisc commented 1 year ago

I’m using the same trick and it works! In this way you can see both the local folder and remote server in the same workspace, first listed is the local folder.

Da: John Murray @.> Data: venerdì, 30 giugno 2023, 12:14 A: intersystems-community/vscode-objectscript @.> Cc: Subscribed @.***> Oggetto: Re: [intersystems-community/vscode-objectscript] Enable isfs workspace folders to access container instances of IRIS that use dynamic host port assignment (Issue #1168)

This is already possible as long as your workspace also has a client-side folder. I intentionally gave the folder an uppercased name in the example below so that when it appears in the isfs reference it doesn't look like a server name (as those can't contain uppercase).

.code-workspace file:

{

    "folders": [

           {

                   "name": "Project",

                   "path": "."

           },

           {

                   "name": "IRIS Server",

                   "uri": "isfs://Project/"

           }

    ],

    "settings": {

    }

}

.vscode/settings.json file:

{

"objectscript.conn" :{

"active": true,

"docker-compose": {

  "service": "iris",

  "internalPort": 52773

},

"ns": "USER",

"username": "SuperUser",

"password": "SYS"

},

}

— Reply to this email directly, view it on GitHubhttps://github.com/intersystems-community/vscode-objectscript/issues/1168#issuecomment-1614444596, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAWUWCZBGEHLPY7OJI3MZETXN2RJNANCNFSM6AAAAAAZJWHTOY. You are receiving this because you are subscribed to this thread.Message ID: @.***>