public string getChangeRange(IScriptSnapshotShim oldSnapshot) { Log("ScriptSnapshotShim.getChangeRange"); var old = oldSnapshot as ScriptSnapshotShim; if ((old != null) && (script.Version == old.script.Version)) { return null; } TextChangeRange textChangeRange = script.GetTextChangeRange(oldSnapshot); string json = JsonConvert.SerializeObject(textChangeRange); Log("ScriptSnapshotShim.getTextChangeRangeSinceVersion: json: {0}", json); return json; }
public string getChangeRange(IScriptSnapshotShim oldSnapshot) { Log("ScriptSnapshotShim.getChangeRange"); var old = oldSnapshot as ScriptSnapshotShim; if ((old != null) && (script.Version == old.script.Version)) { return(null); } TextChangeRange textChangeRange = script.GetTextChangeRange(oldSnapshot); string json = JsonConvert.SerializeObject(textChangeRange); Log("ScriptSnapshotShim.getTextChangeRangeSinceVersion: json: {0}", json); return(json); }
public TextChangeRange GetTextChangeRange(IScriptSnapshotShim oldSnapshot) { return new TextChangeRange(0, oldSnapshot.getLength(), Source.Length); }
public TextChangeRange GetTextChangeRange(IScriptSnapshotShim oldSnapshot) { return(new TextChangeRange(0, oldSnapshot.getLength(), Source.Length)); }