Files
rspade_system/app/RSpade/resource/vscode_extension/src/config.ts
root f6fac6c4bc Fix bin/publish: copy docs.dist from project root
Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 02:08:33 +00:00

15 lines
425 B
TypeScript
Executable File

import * as vscode from 'vscode';
export function get_config() {
return vscode.workspace.getConfiguration('rspade');
}
export function get_python_command(): string {
const custom_path = get_config().get<string>('pythonPath');
if (custom_path && custom_path.trim() !== '') {
return custom_path;
}
// Default based on platform
return process.platform === 'win32' ? 'python' : 'python3';
}