Skip to content

Mark occurence item in string with a special property#14677

Merged
zhengbli merged 2 commits into
microsoft:masterfrom
zhengbli:fixStringOccurence
Mar 16, 2017
Merged

Mark occurence item in string with a special property#14677
zhengbli merged 2 commits into
microsoft:masterfrom
zhengbli:fixStringOccurence

Conversation

@zhengbli
Copy link
Copy Markdown

Partially fixes #12780

Comment thread src/server/session.ts Outdated
end,
file: fileName,
isWriteAccess,
isWriteAccess
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't remove the trailing comma (;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Reason being?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the diff only shows the changed property, and next time when someone adds/removes a property same occurs.
that happens to be the main reason why ES2017 supports trailing commas in argument lists, see https://github.com/tc39/proposal-trailing-function-commas

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Exactly. Git attribution, less lines changes, less conflicts (;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ha that does make sense. Thanks for pointing out! will update.

@zhengbli zhengbli merged commit 5040e1d into microsoft:master Mar 16, 2017
@zhengbli zhengbli deleted the fixStringOccurence branch March 16, 2017 18:01
@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.

'occurrences' Returns occurrences inside strings

4 participants