Skip to content

Fixed bug where tagged templates with a literal adjacent to EOF showed sig help past the end. #1271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 12, 2015

Conversation

DanielRosenwasser
Copy link
Member

No description provided.

@DanielRosenwasser DanielRosenwasser changed the title Fixed bug where tagged templates with a literal adjacent to EOF showed sig help. Fixed bug where tagged templates with a literal adjacent to EOF showed sig help past the end. Nov 25, 2014
// If we did, make sure that it's not the *initial* backtick.
return sourceText.charCodeAt(node.end - 1) !== CharacterCodes.backtick || node.text.length === 0;
// If we didn't end in a backtick, we must still be in the middle of a template literal,
// but if it's the *initial* backtick (whereby the token is 1 char long), then it's unclosed.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I understand this line of comment

Conflicts:
	src/compiler/parser.ts
	src/services/signatureHelp.ts
@mhegazy
Copy link
Contributor

mhegazy commented Feb 9, 2015

👍

DanielRosenwasser added a commit that referenced this pull request Feb 12, 2015
Fixed bug where tagged templates with a literal adjacent to EOF showed sig help past the end.
@DanielRosenwasser DanielRosenwasser merged commit 3e8babe into master Feb 12, 2015
@DanielRosenwasser DanielRosenwasser deleted the taggedSigHelpAtEnd branch February 12, 2015 19:37
@DanielRosenwasser DanielRosenwasser removed their assignment Feb 28, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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.

4 participants