Skip to content

Conversation

@Kakueeen
Copy link
Contributor

Refactored option management system to use Settings class instead of direct JSON
file operations. This change improves code maintainability and reusability by:

  • Removing OptionUtils class and its JSON parsing/writing functionality
  • Using Settings class for all option storage and retrieval operations
  • Simplifying option access through getValue/setValue methods
  • Removing redundant updateData() calls and JSON file operations
  • Adding default constructor to Settings class for flexibility
  • Cleaning up option access code across multiple plugins

The changes affect multiple plugins including CodeEditor, CMake, Java, Python
and others. All JSON file operations are now handled through the Settings
class interface.

Log: Refactored option management to use Settings class instead of JSON

Refactored option management system to use Settings class instead of direct JSON
file operations. This change improves code maintainability and reusability by:

- Removing OptionUtils class and its JSON parsing/writing functionality
- Using Settings class for all option storage and retrieval operations
- Simplifying option access through getValue/setValue methods
- Removing redundant updateData() calls and JSON file operations
- Adding default constructor to Settings class for flexibility
- Cleaning up option access code across multiple plugins

The changes affect multiple plugins including CodeEditor, CMake, Java, Python
and others. All JSON file operations are now handled through the Settings
class interface.

Log: Refactored option management to use Settings class instead of JSON
@deepin-mozart deepin-mozart merged commit 7b1ba25 into linuxdeepin:master Nov 13, 2024
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepin-mozart, Kakueeen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants