mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
remove call to getSourceUnit
This commit is contained in:
parent
68db15d960
commit
463b2392b7
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user