Skip to content

Add typescript and javascript format.insertSpaceBeforeFunctionParenthesis#21712

Merged
mjbvz merged 6 commits intomicrosoft:masterfrom
ChiriVulpes:master
Mar 2, 2017
Merged

Add typescript and javascript format.insertSpaceBeforeFunctionParenthesis#21712
mjbvz merged 6 commits intomicrosoft:masterfrom
ChiriVulpes:master

Conversation

@ChiriVulpes
Copy link

Original Issue

This issue was closed and hasn't been reopened since the feature
has been implemented in TypeScript.

Figured I would try my hand at completing it. I'm too busy at the moment to get a local build working, so I figured I'd just do the changes it looks like are necessary and then make a PR. If it's broken it can be rejected, and in that case I'll apologise for wasting your time. >.>

If you have time and this doesn't provide everything necessary, let me know. I'll try make a local build and update the request with a working version if that's the case.

@msftclas
Copy link

msftclas commented Mar 2, 2017

@Aarilight,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@msftclas
Copy link

msftclas commented Mar 2, 2017

@Aarilight, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

@mjbvz mjbvz self-assigned this Mar 2, 2017
Copy link
Collaborator

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

Looks good overall, let's just make sure to note which version of TypeScript is required to use this setting

"format.insertSpaceBeforeAndAfterBinaryOperators": "Defines space handling after a binary operator.",
"format.insertSpaceAfterKeywordsInControlFlowStatements": "Defines space handling after keywords in a control flow statement.",
"format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": "Defines space handling after function keyword for anonymous functions.",
"format.insertSpaceBeforeFunctionParenthesis": "Defines space handling before function argument parentheses.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a Requires TypeScript >= 2.1.5. blurb at the end

@mjbvz mjbvz merged commit 5e10fe2 into microsoft:master Mar 2, 2017
@mjbvz mjbvz added this to the March 2017 milestone Mar 2, 2017
@mjbvz mjbvz added the verification-needed Verification of issue is requested label Mar 2, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Mar 2, 2017

Thanks! This should be in the next 1.11 insiders build

@jrieken jrieken added the verified Verification succeeded label Mar 29, 2017
@mikhailmelnik
Copy link

Using 1.13.1 and having the opposite issue: by default VS Code adds the space and I can't find any way to remove it as otherwise it will lead to too many changes in source code. Have tried to set "javascript.format.insertSpaceBeforeFunctionParenthesis": false (which is false by default) by it doesn't help.

@mjbvz
Copy link
Collaborator

mjbvz commented Jun 30, 2017

@mikhailmelnik Please open an issue (but also check that an extension is not causing this first)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

verification-needed Verification of issue is requested verified Verification succeeded

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants