You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The cache that stores reports for snapshot ids
143
+
///
144
+
/// Conceptually, this is a dictionary. To prevent excessive memory usage we
145
+
/// only keep `cacheSize` entries within the array. Older entries are at the
146
+
/// end of the list, newer entries at the front.
147
+
privatevarreportCache:
148
+
[(
149
+
snapshotID:DocumentSnapshot.ID,
150
+
report:RelatedFullDocumentDiagnosticReport
151
+
)]=[]
152
+
153
+
/// The number of reports to keep
154
+
///
155
+
/// - Note: This has been chosen without scientific measurements.
156
+
privateletcacheSize=5
157
+
142
158
/// Creates a language server for the given client using the sourcekitd dylib specified in `toolchain`.
143
159
/// `reopenDocuments` is a closure that will be called if sourcekitd crashes and the `SwiftLanguageServer` asks its parent server to reopen all of its documents.
144
160
/// Returns `nil` if `sourcektid` couldn't be found.
0 commit comments