@@ -15,8 +15,10 @@ interface VSCodeSettings {
15
15
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions" : boolean ;
16
16
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis" : boolean ;
17
17
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets" : boolean ;
18
+ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces" : boolean ;
18
19
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces" : boolean ;
19
20
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces" : boolean ;
21
+ "typescript.format.insertSpaceBeforeFunctionParenthesis" : boolean ;
20
22
"typescript.format.placeOpenBraceOnNewLineForFunctions" : boolean ;
21
23
"typescript.format.placeOpenBraceOnNewLineForControlBlocks" : boolean ;
22
24
@@ -58,12 +60,18 @@ export default function makeFormatCodeOptions(fileName: string, opts: Options, f
58
60
if ( config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets" ] != null ) {
59
61
formatSettings . insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets = config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets" ] ;
60
62
}
63
+ if ( config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces" ] != null ) {
64
+ formatSettings . insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces = config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces" ] ;
65
+ }
61
66
if ( config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces" ] != null ) {
62
67
formatSettings . insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces = config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces" ] ;
63
68
}
64
69
if ( config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces" ] != null ) {
65
70
formatSettings . insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces = config [ "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces" ] ;
66
71
}
72
+ if ( config [ "typescript.format.insertSpaceBeforeFunctionParenthesis" ] != null ) {
73
+ formatSettings . insertSpaceBeforeFunctionParenthesis = config [ "typescript.format.insertSpaceBeforeFunctionParenthesis" ] ;
74
+ }
67
75
if ( config [ "typescript.format.placeOpenBraceOnNewLineForFunctions" ] != null ) {
68
76
formatSettings . placeOpenBraceOnNewLineForFunctions = config [ "typescript.format.placeOpenBraceOnNewLineForFunctions" ] ;
69
77
}
0 commit comments