remove call to getSourceUnit

This commit is contained in:
Mohamed Hegazy 2014-10-22 17:36:43 -07:00
parent 68db15d960
commit 463b2392b7

View File

@ -2439,6 +2439,7 @@ module ts {
case "module":
case "function":
case "var":
// TODO: add let and const
return true;
}
}
@ -2503,7 +2504,6 @@ module ts {
filename = TypeScript.switchToForwardSlashes(filename);
var sourceFile = getSourceFile(filename);
var sourceUnit = sourceFile.getSourceUnit();
if (isCompletionListBlocker(sourceFile, position)) {
host.log("Returning an empty list because completion was blocked.");