Skip to content

Commit

Permalink
Sort imports setting (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Jul 25, 2024
1 parent 18267ed commit d49c5f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit d49c5f5

Please sign in to comment.