This pull request addresses issue #7. It modifies the folding behavior in the Decorator class by introducing the foldLengthThreshold configuration setting. The foldLengthThreshold specifies the minimum number of classes required for a section to be unfolded instead of folded.
Here are the changes made in this pull request:
diff --git a/README.md b/README.md
Added the foldLengthThreshold configuration setting to the list of supported settings in the README file.
diff --git a/src/configuration.ts b/src/configuration.ts
Added the FoldLengthThreshold enum value to the Settings enum in the configuration.ts file.
diff --git a/src/decorator.ts b/src/decorator.ts
Added code to split the textToFold into individual class names.
Introduced the foldLengthThreshold variable, which retrieves the value of the FoldLengthThreshold setting.
Skips folding if the number of class names is less than or equal to the foldLengthThreshold.
Please review these changes and consider merging them into the main branch. Let me know if you have any questions or require further clarification.
This pull request addresses issue #7. It modifies the folding behavior in the Decorator class by introducing the
foldLengthThreshold
configuration setting. ThefoldLengthThreshold
specifies the minimum number of classes required for a section to be unfolded instead of folded.Here are the changes made in this pull request:
diff --git a/README.md b/README.md
Added the
foldLengthThreshold
configuration setting to the list of supported settings in the README file. diff --git a/src/configuration.ts b/src/configuration.tsAdded the
FoldLengthThreshold
enum value to the Settings enum in the configuration.ts file. diff --git a/src/decorator.ts b/src/decorator.tsAdded code to split the textToFold into individual class names. Introduced the
foldLengthThreshold
variable, which retrieves the value of theFoldLengthThreshold
setting. Skips folding if the number of class names is less than or equal to thefoldLengthThreshold
. Please review these changes and consider merging them into the main branch. Let me know if you have any questions or require further clarification.Fixes #7