-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix indentation when using preferences tree
Fixes #5052 - fixes the indentation when updating/setting a preference using the `preferences-tree` widget. - the current implementation had a hardcoded value of `tabSize`=3 and `insertSpaces`=true which meant that if the `settings.json` file had different formatting, it would insert incorrectly. - added a new method `detectIndentation` which attempts to detect the current indentation (tabSize and indent type) based on the content of the file. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
- Loading branch information
1 parent
928e1e0
commit d681787
Showing
2 changed files
with
59 additions
and
14 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
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