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;
		}
Beispiel #2
0
        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);
        }
Beispiel #3
0
		public TextChangeRange GetTextChangeRange(IScriptSnapshotShim oldSnapshot)
		{
			return new TextChangeRange(0, oldSnapshot.getLength(), Source.Length);
		}
Beispiel #4
0
 public TextChangeRange GetTextChangeRange(IScriptSnapshotShim oldSnapshot)
 {
     return(new TextChangeRange(0, oldSnapshot.getLength(), Source.Length));
 }