Gracefully handel getChangeRange in Scriptsnapshot.fromString

This commit is contained in:
Mohamed Hegazy
2015-01-16 21:33:53 -08:00
parent 66f8257fc8
commit c9b1309025

View File

@@ -115,7 +115,9 @@ module ts {
}
public getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange {
throw new Error("not yet implemented");
// Text-based snapshots do not support incremental parsing. Return undefined
// to signal that to the caller.
return undefined;
}
}