Skip to content

Optionally insert spaces between template string braces#6202

Merged
mhegazy merged 2 commits into
microsoft:masterfrom
saschanaz:formatTemplateOptional
Jan 7, 2016
Merged

Optionally insert spaces between template string braces#6202
mhegazy merged 2 commits into
microsoft:masterfrom
saschanaz:formatTemplateOptional

Conversation

@saschanaz
Copy link
Copy Markdown
Contributor

...and remove space between template tag and template string.

Fixes #6195.

Current:

tag `string`;

Change:

tag`string`;

Default:

`${2}`;

Optionally:

`${ 2 }`;

Comment thread src/services/services.ts
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not that this should necessarily be a part of this change, but we should separately consider changing Nonempty to NonEmpty

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will that be a breaking change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yyyyes 😢

Never mind I suppose

@myitcv
Copy link
Copy Markdown

myitcv commented Dec 23, 2015

@DanielRosenwasser - any thoughts on my comment from the related thread? What approach are the core TypeScript team taking with respect to formatting?

@DanielRosenwasser
Copy link
Copy Markdown
Member

@myitcv see #6195 (comment)

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Jan 7, 2016

thanks @saschanaz!

mhegazy added a commit that referenced this pull request Jan 7, 2016
Optionally insert spaces between template string braces
@mhegazy mhegazy merged commit 54aedf0 into microsoft:master Jan 7, 2016
@saschanaz saschanaz deleted the formatTemplateOptional branch January 8, 2016 05:07
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

5 participants