From 81fcf25be4e78aaacebf24654d6c25a24dfd48a2 Mon Sep 17 00:00:00 2001 From: somiljain2006 Date: Fri, 5 Jun 2026 07:46:10 +0530 Subject: [PATCH] Updated documentation --- Sources/SourceKitLSP/LanguageService.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/SourceKitLSP/LanguageService.swift b/Sources/SourceKitLSP/LanguageService.swift index 3389207d..3b8720b1 100644 --- a/Sources/SourceKitLSP/LanguageService.swift +++ b/Sources/SourceKitLSP/LanguageService.swift @@ -340,10 +340,9 @@ package protocol LanguageService: AnyObject, Sendable { /// Returns references for symbols within the current document using /// language-specific semantic analysis. /// - /// This is used by `textDocument/references` to provide up-to-date - /// references for the current document, including local symbols that - /// are not available through the index and references in documents - /// with in-memory edits. + /// This is used by `textDocument/references` as a fallback to provide + /// references for local symbols (like local variables and parameters) + /// that are not available through the global index. /// /// - Parameters: /// - position: The position of the queried symbol.