diff --git a/extensions/typescript/package.json b/extensions/typescript/package.json index b288895b51ba72e3e855a34810abb039314192a1..38e44c59f6fd1bcd764ecdea81541cee95b29463 100644 --- a/extensions/typescript/package.json +++ b/extensions/typescript/package.json @@ -108,22 +108,22 @@ }, "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": { "type": "boolean", - "default": true, + "default": false, "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%" }, "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": { "type": "boolean", - "default": true, + "default": false, "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%" }, "typescript.format.placeOpenBraceOnNewLineForFunctions": { "type": "boolean", - "default": true, + "default": false, "description": "%format.placeOpenBraceOnNewLineForFunctions%" }, "typescript.format.placeOpenBraceOnNewLineForControlBlocks": { "type": "boolean", - "default": true, + "default": false, "description": "%format.placeOpenBraceOnNewLineForControlBlocks%" }, "javascript.validate.enable": { @@ -158,22 +158,22 @@ }, "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": { "type": "boolean", - "default": true, + "default": false, "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%" }, "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": { "type": "boolean", - "default": true, + "default": false, "description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%" }, "javascript.format.placeOpenBraceOnNewLineForFunctions": { "type": "boolean", - "default": true, + "default": false, "description": "%format.placeOpenBraceOnNewLineForFunctions%" }, "javascript.format.placeOpenBraceOnNewLineForControlBlocks": { "type": "boolean", - "default": true, + "default": false, "description": "%format.placeOpenBraceOnNewLineForControlBlocks%" } } diff --git a/extensions/typescript/src/features/formattingProvider.ts b/extensions/typescript/src/features/formattingProvider.ts index 2a1cc6f9b293f5a9ebb766a443ef74372288cc34..e5b70e2f938524d70cd81ef8cbe77b3b38a001ff 100644 --- a/extensions/typescript/src/features/formattingProvider.ts +++ b/extensions/typescript/src/features/formattingProvider.ts @@ -146,7 +146,7 @@ export default class TypeScriptFormattingProvider implements DocumentRangeFormat indentSize: options.tabSize, convertTabsToSpaces: options.insertSpaces, // We can use \n here since the editor normalizes later on to its line endings. - newLineCharacter: '\n' /*, + newLineCharacter: '\n', insertSpaceAfterCommaDelimiter: this.config.insertSpaceAfterCommaDelimiter, insertSpaceAfterSemicolonInForStatements: this.config.insertSpaceAfterSemicolonInForStatements, insertSpaceBeforeAndAfterBinaryOperators: this.config.insertSpaceBeforeAndAfterBinaryOperators, @@ -156,7 +156,6 @@ export default class TypeScriptFormattingProvider implements DocumentRangeFormat insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: this.config.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets, placeOpenBraceOnNewLineForFunctions: this.config.placeOpenBraceOnNewLineForFunctions, placeOpenBraceOnNewLineForControlBlocks: this.config.placeOpenBraceOnNewLineForControlBlocks - */ }; } } \ No newline at end of file