feat: add insertSpaceAfterOpeningAndBeforeClosingEmptyBraces (#239)

https://github.com/microsoft/TypeScript/pull/41304
This commit is contained in:
Heyward Fann 2020-12-10 16:55:04 +08:00 committed by GitHub
parent 27eb1d8e55
commit f2860b493b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -158,6 +158,8 @@ for guide of coc.nvim's configuration.
- `typescript.format.insertSpaceBeforeFunctionParenthesis` default: `false`
- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`
default: `false`
- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces`
default: `false`
- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`
default: `false`
- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`
@ -202,6 +204,8 @@ for guide of coc.nvim's configuration.
- `javascript.format.insertSpaceBeforeFunctionParenthesis` default: `false`
- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`
default: `false`
- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces`
default: `false`
- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`
default: `false`
- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`

View file

@ -379,6 +379,10 @@
"type": "boolean",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
"type": "boolean",
"default": false
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
"type": "boolean",
"default": false
@ -557,6 +561,10 @@
"type": "boolean",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
"type": "boolean",
"default": false
},
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
"type": "boolean",
"default": false

View file

@ -136,6 +136,7 @@ export default class FileConfigurationManager {
insertSpaceBeforeFunctionParenthesis: config.get<boolean>('insertSpaceBeforeFunctionParenthesis'),
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: config.get<boolean>('insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis'),
insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: config.get<boolean>('insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets'),
insertSpaceAfterOpeningAndBeforeClosingEmptyBraces: config.get<boolean>('insertSpaceAfterOpeningAndBeforeClosingEmptyBraces'),
insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces: config.get<boolean>('insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces'),
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: config.get<boolean>('insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces'),
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: config.get<boolean>('insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces'),