mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
feat(settings): enhance settings management with generic setter and display hel… (#6202)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
36ea986cfe
commit
92bb4624c4
5 changed files with 546 additions and 219 deletions
|
|
@ -392,7 +392,7 @@ describe('SettingsUtils', () => {
|
|||
new Set(),
|
||||
updatedPendingSettings,
|
||||
);
|
||||
expect(displayValue).toBe('true*'); // Should show true with * indicating change
|
||||
expect(displayValue).toBe('true'); // Should show true (no * since value matches default)
|
||||
|
||||
// Test that modified settings also show the * indicator
|
||||
const modifiedSettings = new Set([key]);
|
||||
|
|
@ -602,7 +602,7 @@ describe('SettingsUtils', () => {
|
|||
mergedSettings,
|
||||
modifiedSettings,
|
||||
);
|
||||
expect(result).toBe('false'); // matches default, no *
|
||||
expect(result).toBe('false*');
|
||||
});
|
||||
|
||||
it('should show default value when setting is not in scope', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue