Skip to main content

Configuration

VS Code Settings

Add these settings to your VS Code settings.json:

{
// Path to Pike executable (default: "pike")
"pike.pikePath": "/usr/local/bin/pike",

// LSP trace level for debugging
"pike.trace.server": "off" // "off" | "messages" | "verbose"
}

Configuration Options

SettingTypeDefaultDescription
pike.pikePathstring"pike"Path to the Pike executable
pike.trace.serverstring"off"LSP trace level: "off", "messages", or "verbose"
pike.enablebooleantrueEnable/disable the LSP server

Custom File Extensions

For non-standard extensions, add file associations in VSCode settings:

{
"files.associations": {
"*.rjs": "pike",
"*.inc": "pike"
}
}

Environment Variables

Pike LSP respects the following environment variables:

VariableDescription
PIKE_PATHPike module search path
PIKE_INCLUDE_PATHPike include path
PIKE_MODULE_PATHPike module path