private void RaiseSessionSpansUpdated(ImmutableArray <InlineRenameLocation> locations) { AssertIsForeground(); SetReferenceLocations(locations); // It's OK to call SetReferenceLocations with all documents, including unchangeable ones, // because they can't be opened, so the _openTextBuffers loop won't matter. In fact, the entire // inline rename is oblivious to unchangeable documents, we just need to filter out references // in them to avoid displaying them in the UI. // https://github.com/dotnet/roslyn/issues/41242 if (_workspace.IgnoreUnchangeableDocumentsWhenApplyingChanges) { locations = locations.WhereAsArray(l => l.Document.CanApplyChange()); } ReferenceLocationsChanged?.Invoke(this, locations); }
private void RaiseSessionSpansUpdated(IList <InlineRenameLocation> locations) { AssertIsForeground(); SetReferenceLocations(locations); ReferenceLocationsChanged?.Invoke(this, locations); }