You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Base64-encoded configuration (or its decoded content) changes, we want to detect and re-initialize the extension to ensure new config values take effect immediately.
Tasks
Implement Change Detection
Monitor the Base64-encoded config in real time or at key points (e.g., on save, on profile switch, etc.).
Compare the new value with the old cached value to detect changes.
Trigger Re-initialization
If the new config is different, programmatically re-initialize the necessary extension states:
Reload analysis
Refresh webview content
Re-parse rules
Ensure minimal disruption to the user (i.e., avoid a full extension reload if possible).
Update Event Flow
Integrate this logic into any existing config update functions or watchers.
Make sure that when the user updates the configuration (via UI/webview or VS Code settings), the event triggers the re-init.
Testing & Validation
Verify that all extension functionalities (e.g., analysis, status bar commands) still work as expected after a re-init.
Test edge cases, such as:
Multiple quick successive changes to the config
User reverting to a previous configuration
Acceptance Criteria
Config changes are detected reliably.
Extension refreshes to adopt new config with minimal user interruption.
No stale state remains after re-init.
The text was updated successfully, but these errors were encountered:
When the Base64-encoded configuration (or its decoded content) changes, we want to detect and re-initialize the extension to ensure new config values take effect immediately.
Tasks
Implement Change Detection
Trigger Re-initialization
Update Event Flow
Testing & Validation
Acceptance Criteria
The text was updated successfully, but these errors were encountered: