-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor plugin.gd for improved readability and maintainability (#2012)
* Refactor plugin.gd for improved readability and maintainability This commit includes several changes to improve the readability and maintainability of the plugin.gd file: 1. More descriptive comments have been added to provide better context for the code. 2. Repeated code checking the existence of `editor_view` and `editor_view.editors_manager` has been moved into a helper function `_editor_view_and_manager_exist()`. 3. String literals that were used multiple times in the code have been replaced with constants to avoid magic strings and make future changes easier. * Update plugin.gd Updated the requested changes * Make some style changes - adds code regions - uses tabs - makes a few things statically typed - simplifies some methods --------- Co-authored-by: Jowan-Spooner <[email protected]>
- Loading branch information
1 parent
7a43111
commit d38ec68
Showing
1 changed file
with
67 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters