Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

String literal completions: Use call signature only if we are *immediately* in a call expression#13364

Merged
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
string_literal_completions_fixmicrosoft/TypeScript:string_literal_completions_fixCopy head branch name to clipboard
Jan 9, 2017
Merged

String literal completions: Use call signature only if we are *immediately* in a call expression#13364
1 commit merged into
mastermicrosoft/TypeScript:masterfrom
string_literal_completions_fixmicrosoft/TypeScript:string_literal_completions_fixCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Jan 9, 2017

Copy link
Copy Markdown

Fixes #12224

The problem was that in a call foo({ x: "/**/" }) we were trying to get string literal completions for the first argument, which is obviously not being filled in as a string literal. We should only do signature completions in the case of foo("/**/"), where we are immediately the argument to foo.

@ghost ghost merged commit df8cb9d into master Jan 9, 2017
@ghost ghost deleted the string_literal_completions_fix branch January 9, 2017 18:11
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.