-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[preferences] inconsistent formatting when adding a preference through the tree #5052
Labels
Comments
vince-fugnitto
added
bug
bugs found in the application
preferences
issues related to preferences
labels
May 1, 2019
I believe we should be smarter here and get the current configured |
vince-fugnitto
added a commit
that referenced
this issue
Dec 11, 2019
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 <[email protected]>
1 task
vince-fugnitto
added a commit
that referenced
this issue
Dec 12, 2019
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 <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 16, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 16, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 16, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 16, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 16, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 17, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 17, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 19, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
vince-fugnitto
added a commit
that referenced
this issue
Dec 20, 2019
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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
akosyakov
pushed a commit
to akosyakov/theia
that referenced
this issue
Feb 24, 2020
Fixes eclipse-theia#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 `getFormattingOptions` which gets the preference options for tabSize and indentation type. - fixed typings from the `preference-service`. If a default value is provided, the preference should return that value if the preference initially returns `undefined`. Signed-off-by: vince-fugnitto <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If a new preference is added by the
preferences-tree
the formatting becomes inconsistent with existing preferences.Steps to reproduce
settings.json
with exisitng preferences (in my casejson
had 2 spaces).The text was updated successfully, but these errors were encountered: