Skip to content

[typescript-language-features] Add formatter option for semicolons#80828

Merged
mjbvz merged 3 commits intomicrosoft:masterfrom
andrewbranch:feature/ts-semicolon-preference
Sep 13, 2019
Merged

[typescript-language-features] Add formatter option for semicolons#80828
mjbvz merged 3 commits intomicrosoft:masterfrom
andrewbranch:feature/ts-semicolon-preference

Conversation

@andrewbranch
Copy link
Member

@andrewbranch andrewbranch commented Sep 12, 2019

Counterpart to microsoft/TypeScript#33402

Build will fail because I’m referencing the updated protocol from the TS PR—not sure how you handle proto updates but this will have to wait at least until the TS PR is merged.

image

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.

LGTM. To get testing, I'd like to merge this before we actually start shipping 3.7 so let's avoid using the new types

insertSpaceAfterTypeAssertion: config.get<boolean>('insertSpaceAfterTypeAssertion'),
placeOpenBraceOnNewLineForFunctions: config.get<boolean>('placeOpenBraceOnNewLineForFunctions'),
placeOpenBraceOnNewLineForControlBlocks: config.get<boolean>('placeOpenBraceOnNewLineForControlBlocks'),
semicolons: config.get<Proto.SemicolonPreference>('semicolons'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

So that we can merge this before VS Code includes TS 3.7, just use a normal string for now (or inline the string literal types)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. I had to modify the type of the object to get away with adding the additional property. Left a note that it can be removed after 3.7 is adopted.

@andrewbranch
Copy link
Member Author

Flaky Windows build?

@mjbvz mjbvz merged commit 8774e0b into microsoft:master Sep 13, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 13, 2019

Yep, failure seems unrelated. Thanks for the PR!

@mjbvz mjbvz added this to the September 2019 milestone Sep 13, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
@andrewbranch andrewbranch deleted the feature/ts-semicolon-preference branch April 12, 2023 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants