Пример #1
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;
		}
Пример #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);
        }
Пример #3
0
		public TextChangeRange GetTextChangeRange(IScriptSnapshotShim oldSnapshot)
		{
			return new TextChangeRange(0, oldSnapshot.getLength(), Source.Length);
		}
Пример #4
0
 public TextChangeRange GetTextChangeRange(IScriptSnapshotShim oldSnapshot)
 {
     return(new TextChangeRange(0, oldSnapshot.getLength(), Source.Length));
 }