Add config() Go to Definition support to VS Code extension

Always include params in window.rsxapp to reduce state variations
Add request params to window.rsxapp global
Enhance module creation commands with clear nomenclature guidance
Add module/submodule/feature nomenclature clarification to docs

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-30 19:13:57 +00:00
parent 8c8fb8e902
commit ac082bce2a
15 changed files with 546 additions and 16 deletions

View File

@@ -35,13 +35,20 @@ class Rsx
*/
protected static $current_action = null;
/**
* Current request params
* @var array|null
*/
protected static $current_params = null;
/**
* Set the current controller and action being executed
*
* @param string $controller_class The controller class name
* @param string $action_method The action method name
* @param array $params Optional request params to store
*/
public static function _set_current_controller_action($controller_class, $action_method)
public static function _set_current_controller_action($controller_class, $action_method, array $params = [])
{
// Extract just the class name without namespace
$parts = explode('\\', $controller_class);
@@ -49,6 +56,7 @@ class Rsx
static::$current_controller = $class_name;
static::$current_action = $action_method;
static::$current_params = $params;
}
/**
@@ -71,6 +79,16 @@ class Rsx
return static::$current_action;
}
/**
* Get the current request params
*
* @return array|null The current request params or null if not set
*/
public static function get_current_params()
{
return static::$current_params;
}
/**
* Clear the current controller and action tracking
*/
@@ -78,6 +96,7 @@ class Rsx
{
static::$current_controller = null;
static::$current_action = null;
static::$current_params = null;
}
/**