mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
remove call to getSourceUnit
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user