Skip to content
Prev Previous commit
Next Next commit
Remove unused check
  • Loading branch information
mhegazy committed May 2, 2016
commit 7b0d664394c3a3742e6c52d9fec65e3f3e445267
1 change: 0 additions & 1 deletion src/services/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4061,7 +4061,6 @@ namespace ts {
return undefined;
}

isNameOfExternalModuleImportOrDeclaration
const argumentInfo = SignatureHelp.getContainingArgumentInfo(node, position, sourceFile);
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a slightly weird sort of dependency. Ideally there would be an API on the type checker like getPossibleContextualTypes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is not contextual type per se. but sure. If there is another use case for such API we can push it into the checker, but this is the only one, i would keep it at the use site.

if (argumentInfo) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: could you add comments from the PR description here. so we know what cases are covered

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure.

return getStringLiteralCompletionEntriesFromCallExpression(argumentInfo);
Expand Down