-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code for IBMi - external connection #592
Comments
@cosentino-smeup Can you clarify what you mean exactly by "IBMi-bob connections"? Since the bob commands are run on the IBM i, it will be using the connection for the SSH session it was invoked in. This applies to using bob from the command line (PASE) or Project Explorer from VS Code.
Is your goal to have a local text file with your connection and then invoke a build against that connection from the command line? I believe this would require having to write your own script that would read the connection from the text file and then deploy and build the project on the IBM i. The last two steps can be achieved using @ibm/ibmi-ci. @edmundreinhardt Are you aware of any other ways to do this easily? |
Sorry, my mistake it was "Code for IMB i" connections. (bad copy and paste due to the last issues I opened) This question is related to this one. We want our end clients to be able to open PF-SRC members from our product using OpenVSCode using the extension "Code for IBM i". We want this operation to be as much as transparent as possible, because they might not necessary know anything about VS Code and the IBM extension. Unfortunately, according with @sebjulliand, the solution might not work with OpenVSCode. With this expectations, I thought I could at least simplify the process by creating a connection with the IMBi during our installation. In fact, we'll provide a container with OpenVSCode and code for IBMi. We have all information we need to create the connection because we use it in our product:
I thought that I could write this information in a text file in a specific folder so that the "Code for IBM i" can recognize it. |
@cosentino-smeup do a search in the Code for IBM I codebase |
@cosentino-smeup It is possible to add connection they way you'd like to.
|
@worksofliam I tried looking for I found this. |
This command: https://github.com/codefori/vscode-ibmi/blob/e0e862ea56db64a28161e5c581016e6489645fa9/src/extension.ts#L70 But I don't see how you'd call it unless you write your own extension. You may want to have a look at this: https://github.com/codefori/vscode-ibmi/blob/e0e862ea56db64a28161e5c581016e6489645fa9/src/sandbox.ts#L10 Code for i can handle a "/connect" URI that allows to connect directly to an IBM i, even saving the connection for further use.
This will connect to the ADRESS on port PORT with user MYUSER. If This may answer your need. What remains to know is whether or not OpenVSCode can accept these vscode:// URL or not. |
Exactly, "vscode://" would be the answer if only it worked in OpenVSCode. I opened a issue to openvscode: here But I have the feeling that nobody is going to answer :-( |
@sebjulliand, unfortunately OpenVSCode persists settings in the browser's indexedDB rather than a settings.json file on the file system. |
I have some questions about IBMi-bob connections:
The text was updated successfully, but these errors were encountered: