[SourceKit] Allow references to non-editable base names to be returned by the related identifiers request

While we don't want to return non-editable base names for Edit-All-In-Scope, we do want to return them if the related identifiers response is used as the input for find-syntactic-rename-ranges.
This commit is contained in:
Alex Hoppen
2023-11-21 15:19:57 -08:00
parent ddf4a2e3fb
commit a24c563d70
5 changed files with 33 additions and 15 deletions

View File

@@ -682,8 +682,8 @@ public:
void findRelatedIdentifiersInFile(
StringRef PrimaryFilePath, StringRef InputBufferName, unsigned Offset,
bool CancelOnSubsequentRequest, ArrayRef<const char *> Args,
SourceKitCancellationToken CancellationToken,
bool IncludeNonEditableBaseNames, bool CancelOnSubsequentRequest,
ArrayRef<const char *> Args, SourceKitCancellationToken CancellationToken,
std::function<void(const RequestResult<RelatedIdentsResult> &)> Receiver)
override;