/// <summary>Adds a link that can be clicked on in the script.</summary> public void AddDefinitionLink(DocRange callRange, Location definedAt) { if (callRange == null) { throw new ArgumentNullException(nameof(callRange)); } if (definedAt == null) { throw new ArgumentNullException(nameof(definedAt)); } callLinks.Add(new LocationLink() { OriginSelectionRange = callRange.ToLsRange(), TargetUri = definedAt.uri, TargetRange = definedAt.range.ToLsRange(), TargetSelectionRange = definedAt.range.ToLsRange() }); }