public ScriptSourceTextContainer(string resolvedPath) { this.resolvedPath = resolvedPath ?? throw new ArgumentNullException(nameof(resolvedPath)); currentText = new ScriptSourceText(this, resolvedPath); }
public void Reload() { var oldText = currentText; currentText = new ScriptSourceText(this, resolvedPath); TextChanged?.Invoke( this, new TextChangeEventArgs( oldText, currentText, currentText.GetChangeRanges(oldText))); }