Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Issue 958373003: Don't remove indexing operations on potential source changes. (Closed)

Created:
5 years, 9 months ago by scheglov
Modified:
5 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't remove indexing operations on potential source changes. This covers the following scenario: 1. User performs an undo operation in a save editor. 2. Editor updates the file buffer, so sends 'add overlay'. Server performs an incremental analysis and schedules an 'analyze' operation. 3. The 'analyze' operation runs and schedules 'index' operation. 4. Editor saves the file buffer. Editor sends 'remove overlay command'. Server removes all the scheduled notification and index operations for the file. Server notices that there is no real change for the file, so the is nothing to do. But it still reschedules notifications, because the client might have lost some information. 5. Notifications are resent, but indexing is not performed. So, the solution is to reschedule indexing operation. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=44111

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -38 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 2 chunks +14 lines, -12 lines 2 comments Download
M pkg/analysis_server/lib/src/operation/operation_analysis.dart View 1 chunk +9 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/analysis/update_content_test.dart View 4 chunks +52 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/file_system/memory_file_system.dart View 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 2 chunks +36 lines, -24 lines 4 comments Download
M pkg/analyzer/test/generated/engine_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
5 years, 9 months ago (2015-02-27 21:33:29 UTC) #1
Brian Wilkerson
LGTM, modulo the one concern. https://codereview.chromium.org/958373003/diff/1/pkg/analyzer/lib/src/generated/engine.dart File pkg/analyzer/lib/src/generated/engine.dart (right): https://codereview.chromium.org/958373003/diff/1/pkg/analyzer/lib/src/generated/engine.dart#newcode1856 pkg/analyzer/lib/src/generated/engine.dart:1856: List<CompilationUnit> ensureResolvedDartUnits(Source unitSource) { ...
5 years, 9 months ago (2015-02-27 21:56:21 UTC) #2
Paul Berry
lgtm once the issue with the assertion is resolved. https://codereview.chromium.org/958373003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (left): https://codereview.chromium.org/958373003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#oldcode664 pkg/analysis_server/lib/src/analysis_server.dart:664: ...
5 years, 9 months ago (2015-02-27 22:05:01 UTC) #3
scheglov
https://codereview.chromium.org/958373003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (left): https://codereview.chromium.org/958373003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#oldcode664 pkg/analysis_server/lib/src/analysis_server.dart:664: assert(performOperationPending); On 2015/02/27 22:05:00, Paul Berry wrote: > Why ...
5 years, 9 months ago (2015-02-28 01:34:35 UTC) #4
scheglov
5 years, 9 months ago (2015-02-28 01:35:15 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 44111 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698