NQBP Integration Extension
This extension adds NQBP build system integration to VS Code.
- Right-click on any file or directory in the Explorer
- Select "Show Lines" from the context menu
- A temporary file with 5 lines is generated
- A QuickPick dropdown appears with the lines
- Select a line and it will be echoed in the terminal
Features
- NQBP Build Selection - Right-click files/folders in Explorer to select NQBP build configurations
- Integration with sancho.py - Automatically discovers build directories and configures compilers
- Terminal integration - Executes environment setup with selected build configuration
- Automatic environment setup - Every new terminal automatically runs
env.sh (Linux/Mac) or env.bat (Windows)
- Custom terminal profile - Launch terminals with pre-configured environment
Requirements
Installation & Development
- Install Node.js and npm
- Run
npm install to install dependencies
- Run
npm run compile to compile TypeScript
- Press F5 to launch the extension in debug mode
Usage
NQBP Build Selection
- Open a workspace in VS Code that contains NQBP projects
- Right-click any file or folder in the Explorer view
- Click "Select NQBP Build..." from the context menu
- Select a build directory from the dropdown (provided by
sancho.py builddirs)
- The extension runs
sancho.py compiler with your selection
- The compiler output is passed as an argument to
env.sh or env.bat
- The terminal remains open with the configured build environment
Environment Configuration
The extension automatically runs environment setup scripts when opening new terminals:
- Linux/Mac: Runs
source env.sh if present in the workspace root
- Windows: Runs
call env.bat if present in the workspace root
To set up automatic environment configuration:
- Create
env.sh (Linux/Mac) or env.bat (Windows) in your workspace root
- Add environment variables, PATH modifications, or other setup commands
- All new terminals will automatically execute this script without arguments
Example env.sh:
#!/bin/bash
export MY_VAR="value"
export PATH="$PATH:/custom/path"
echo "Environment loaded"
Example env.bat:
@echo off
set MY_VAR=value
set PATH=%PATH%;C:\custom\path
echo Environment loaded
| |