Configuration Guide
Learn how to configure the settings for the IBM z/TPF Development Visual Studio Code extension. Learn how to configure the project using the maketpf project configuration files.
Table of Contents
Accessing Extension Settings
Via Visual Studio Code Settings UI
- Open Settings:
Ctrl+,(Windows/Linux) orCmd+,(macOS) - Search for “IBM z/TPF Development”
- Modify settings using the UI
Via settings.json
- Open Command Palette:
Ctrl+Shift+P/Cmd+Shift+P - Type “Preferences: Open Settings (JSON)”
- Add IBM z/TPF Development configuration:
{
"ztpf-development.linux.base": "/path/to/folder",
"ztpf-development.linux.host": "example.org",
"ztpf-development.linux.port": 22
}
Required Extension Settings
The following settings must be set by the user in order to use the IBM z/TPF Development Visual Studio Code Extension:
ztpf-development.linux.base- The user’s workspace directory on the Linux on IBM Z systemztpf-development.linux.host- The hostname or IP address of the Linux on IBM Z systemztpf-development.linux.userId- The username for the SSH connection to the Linux on IBM Z systemztpf-development.linux.privateKey- Local file path for the SSH private key file for the SSH connection to the Linux on IBM Z system
Check the default values for any additional ztpf-development settings not listed here for completeness: for example, the SSH server port on the Linux on IBM Z system may not be the default value of 22.
Project Configuration
A maketpf.cfg file instructs the build tools on Linux on IBM Z how to build the project. See the manpages for maketpf.cfg for the complete overview of the options available.
The extension includes new configuration options to the maketpf.cfg file to perform particular tasks:
PROJECT_BUILD_COMPILE: the name of a source file to pass tomaketpf -f <value>in order to compile or assemblePROJECT_BUILD_LINK: the name of a program to pass tomaketpf <value> linkin order to link the shared objectPROJECT_TEST_NAMESPACE: the name of a z/TPF Automated Test Framework namespace used to discover and run testsPROJECT_TEST_PROGRAM: the name of a program that contains z/TPF Automated Test Framework testsLOADTPF_HTTP_PORT: the HTTPS/HTTP port to use for making REST service requests
Next Steps
- Review Features to explore capabilities
- Check Getting Started for usage examples