Skip to content
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

Sort imports setting #582

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/extension-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ If true, a space is inserted to the left of an opening function declaration pare
### `brightscript.format.insertSpaceBetweenEmptyCurlyBraces`

if true, empty curly braces will contain exactly 1 whitespace char (i.e. `{ }`). If false, there will be zero whitespace chars between empty curly braces (i.e. `{}`)
### `brightscript.format.sortImports`
if true, import statements will be sorted alphabetically.
### `brightscript.output.includeStackTraces`
If set to true, will print stack trace or breakpoint info in the log output. Set to false to avoid noisy logs - you'll still get the traces in the debug console, in any case
### `brightscript.output.focusOnLaunch`
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,12 @@
"original"
],
"scope": "resource"
},
"brightscript.format.sortImports": {
"type": "boolean",
"default": false,
"description": "Sort import statements alphabetically",
"scope": "resource"
}
}
},
Expand Down