Unreviewed changes
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: pkg/analysis_server/lib/src/session_logger/session_logger_sink.dart
Insertions: 4, Deletions: 21.
@@ -61,9 +61,8 @@
/// requested.
final List<LogEntry> _configurationBuffer = [];
- /// A set of buffers, indexed by text document URI, for entries related to
- /// that text document.
- final Map<String, List<LogEntry>> _textDocumentBuffers = {};
+ /// The buffer in which text document related entries are stored.
+ final List<LogEntry> _textDocumentBuffer = [];
/// The buffer in which normal entries are stored.
final List<LogEntry> _sessionBuffer = [];
@@ -79,7 +78,7 @@
return [
..._initializationBuffer,
..._configurationBuffer,
- ..._textDocumentBuffers.values.expand((buffer) => buffer),
+ ..._textDocumentBuffer,
..._sessionBuffer,
];
}
@@ -120,23 +119,7 @@
if (_isConfigurationEntry(logEntry)) {
_configurationBuffer.add(logEntry);
} else if (_isTextDocumentEntry(logEntry)) {
- var message = logEntry.message;
- var textDocumentUri = message.textDocument;
- if (textDocumentUri != null) {
- // This could also provide special handling for `textDocument/didSave`
- // notifications. When the file is saved the player no longer needs to
- // apply any previous edits, so those notifications (and the `didSave`
- // notification itself) could be discarded.
- if (message.isDidClose) {
- _textDocumentBuffers.remove(textDocumentUri);
- } else {
- var buffer = _textDocumentBuffers.putIfAbsent(
- textDocumentUri,
- () => [],
- );
- buffer.add(logEntry);
- }
- }
+ _textDocumentBuffer.add(logEntry);
}
}
}
```
Change information
Commit message:
Keep track of all congiguration messages
Change-Id: I4c546fc13d10adf969a3903b42ea863f0e0cf875
Files:
- M pkg/analysis_server/lib/src/session_logger/session_logger_sink.dart
- M pkg/analysis_server/tool/performance/scenarios/scenario.dart
Change size: M
Delta: 2 files changed, 27 insertions(+), 38 deletions(-)
Branch: refs/heads/main
Submit Requirements:
Code-Review: +1 by Brian Wilkerson