Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize settings/options into groups that will be collapsable
Waiting on Atom/settings-view support: atom/settings-view#736
- Loading branch information
Showing
2 changed files
with
67 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,43 @@ | ||
module.exports = { | ||
analytics : | ||
title: 'Anonymous Analytics' | ||
type : 'boolean' | ||
default : true | ||
description : "There is [Segment.io](https://segment.io/) which forwards data to [Google | ||
Analytics](http://www.google.com/analytics/) to track what languages are being | ||
used the most, as well as other stats. Everything is anonymized and no personal | ||
information, such as source code, is sent. | ||
See https://github.com/Glavin001/atom-beautify/issues/47 for more details." | ||
_analyticsUserId : | ||
title: 'Analytics User Id' | ||
type : 'string' | ||
default : "" | ||
description : "Unique identifier for this user for tracking usage analytics" | ||
_loggerLevel : | ||
title: "Logger Level" | ||
type : 'string' | ||
default : 'warn' | ||
description : 'Set the level for the logger' | ||
enum : ['verbose', 'debug', 'info', 'warn', 'error'] | ||
beautifyEntireFileOnSave : | ||
title: "Beautify Entire File On Save" | ||
type : 'boolean' | ||
default : true | ||
description : "When beautifying on save, use the entire file, even if there is selected text in the editor" | ||
muteUnsupportedLanguageErrors : | ||
title: "Mute Unsupported Language Errors" | ||
type : 'boolean' | ||
default : false | ||
description : "Do not show \"Unsupported Language\" errors when they occur" | ||
muteAllErrors : | ||
title: "Mute All Errors" | ||
type : 'boolean' | ||
default : false | ||
description : "Do not show any/all errors when they occur" | ||
} | ||
_general: | ||
title: 'General' | ||
type: 'object' | ||
collapsed: true | ||
description: 'General options for Atom Beautify' | ||
properties: | ||
analytics : | ||
title: 'Anonymous Analytics' | ||
type : 'boolean' | ||
default : true | ||
description : "There is [Segment.io](https://segment.io/) which forwards data to [Google | ||
Analytics](http://www.google.com/analytics/) to track what languages are being | ||
used the most, as well as other stats. Everything is anonymized and no personal | ||
information, such as source code, is sent. | ||
See https://github.com/Glavin001/atom-beautify/issues/47 for more details." | ||
_analyticsUserId : | ||
title: 'Analytics User Id' | ||
type : 'string' | ||
default : "" | ||
description : "Unique identifier for this user for tracking usage analytics" | ||
_loggerLevel : | ||
title: "Logger Level" | ||
type : 'string' | ||
default : 'warn' | ||
description : 'Set the level for the logger' | ||
enum : ['verbose', 'debug', 'info', 'warn', 'error'] | ||
beautifyEntireFileOnSave : | ||
title: "Beautify Entire File On Save" | ||
type : 'boolean' | ||
default : true | ||
description : "When beautifying on save, use the entire file, even if there is selected text in the editor" | ||
muteUnsupportedLanguageErrors : | ||
title: "Mute Unsupported Language Errors" | ||
type : 'boolean' | ||
default : false | ||
description : "Do not show \"Unsupported Language\" errors when they occur" | ||
muteAllErrors : | ||
title: "Mute All Errors" | ||
type : 'boolean' | ||
default : false | ||
description : "Do not show any/all errors when they occur" | ||
} |
f2968b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc #597 #620 #405 atom/settings-view#736