Skip to content

fix completions for string literal types with template string (#19162)#19204

Merged
DanielRosenwasser merged 1 commit into
microsoft:masterfrom
Kingwl:fix-completions-with-template-literal-type
Dec 19, 2017
Merged

fix completions for string literal types with template string (#19162)#19204
DanielRosenwasser merged 1 commit into
microsoft:masterfrom
Kingwl:fix-completions-with-template-literal-type

Conversation

@Kingwl
Copy link
Copy Markdown
Contributor

@Kingwl Kingwl commented Oct 16, 2017

Fixes #19162

Comment thread src/services/completions.ts Outdated
return PathCompletions.getStringLiteralCompletionEntriesFromModuleNames(<StringLiteral>node, compilerOptions, host, typeChecker);
}
else if (isEqualityExpression(node.parent)) {
// Get completions from the type of the switch expression
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.

Why is the comment here swapped around?

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 9, 2017

@Kingwl can you fix the comments please?

@Kingwl Kingwl force-pushed the fix-completions-with-template-literal-type branch from 70dae96 to f1904a9 Compare November 10, 2017 14:17
@Kingwl
Copy link
Copy Markdown
Contributor Author

Kingwl commented Nov 10, 2017

@mhegazy fixed

@DanielRosenwasser DanielRosenwasser merged commit 89b5d8c into microsoft:master Dec 19, 2017
@DanielRosenwasser
Copy link
Copy Markdown
Member

Thanks!

@Kingwl Kingwl deleted the fix-completions-with-template-literal-type branch December 20, 2017 01:30
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 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.

3 participants