Configuring
Learn how to configure the IBM® watsonx Code Assistant™ for Z Refactoring Assistant Visual Studio Code extension.
Setting the Z Refactoring Assistant server address
The Z Refactoring Assistant
Visual Studio Code extension must be configured with the URL of the
IBM watsonx Code Assistant for Z Refactoring Assistant server. To configure the server,
complete the following steps:
- Open the Visual Studio Code Command Palette by selecting from the Visual Studio Code menu.
- Enter Preferences: Open User Settings in the command palette.
- Search for
IBM watsonx Code Assistant for Z Refactoring Assistant
to locate the extension settings. - Enter the URL of the Z Refactoring Assistant server as the Refactoring Assistant Server: URL property value.
Managing certificates
If your Z Refactoring Assistant server uses an untrusted or
self-signed certificate, you must add the refactoring-assistant-ui.crt from
the Z Refactoring Assistant server to the trust chain of your
operating system.
- On MacOS, double-click the certificate to install it by using the
Keychain Access tool. In the same tool, change the certificate’s trust setting to
Always Trust
. - On Windows, double-click the certificate to install it by using the Certificate MMC snap-in. For self-signed certificates, make sure that it is installed to Trusted Root Certification Authorities folder.
If the certificate is signed by intermediate or root certificate authorities that are unknown to
the operating system, you must complete the following additional steps:
- Add the intermediate and root certificates to the trust chain of your operating system.
- Save the certificate chain as a file in PEM format, arranging the certificates' information in a hierarchical order so that the trusted root certificate details appear at the end of the file. Then, set the absolute path to the PEM file as the value of the Refactoring Assistant Server: Certificate setting.
Note: A certificate chain is a sequence of digital certificates where each certificate is
validated by the subsequent one, connecting to a trusted root certificate. It ensures the
authenticity of the certificate by linking it to a trusted authority.
Note: A PEM (Privacy-Enhanced Mail) format certificate is a Base64-encoded
text file that contains cryptographic keys, certificates, or related information. It is commonly
used for SSL certificates and has a file extensions such as
.pem
,
.crt
, or .key
.Enabling experimental features
2.1+If you are interested in accessing and testing new
features before they are officially released, complete the following steps to enable experimental features:
- Open the Visual Studio Code Command Palette by selecting from the Visual Studio Code menu.
- Enter Preferences: Open User Settings in the command palette.
- Search for
IBM watsonx Code Assistant for Z Refactoring Assistant
to locate the extension settings. - Select the Refactoring Assistant: Experimental Features checkbox.
Enabling the Code Generation Hints: Cursors feature
The Code Generation Hints: Cursors feature inserts SQL cursor declarations as additional comments to generated
code, which helps to improve the quality of the resulting Java™ code after transformation. To enable the feature,
complete the following steps:
- Open the Visual Studio Code Command Palette by selecting from the Visual Studio Code menu.
- Enter Preferences: Open User Settings in the command palette.
- Search for
IBM watsonx Code Assistant for Z Refactoring Assistant
to locate the extension settings. - Select the Refactoring Assistant > Code Generation Hints: Cursors checkbox.
