File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ func foo() {}
31
31
// SEMA_2: 5 {{.*}} source.statistic.num-requests
32
32
// SEMA_2: 0 {{.*}} source.statistic.num-semantic-requests
33
33
// SEMA_2: 2 {{.*}} source.statistic.num-ast-builds
34
- // SEMA_2: 1 {{.*}} source.statistic.num-asts-in-memory
35
- // FIXME_SEMA_2: 0 {{.*}} source.statistic.num-ast-cache-hits
34
+ // NOTE: we cannot match num-asts-in-memory, or num-ast-cache-hits reliably when
35
+ // doing edits. The first ASTConsumer can still be running when the edit happens
36
+ // in which case we may trigger an extra processLatestSnapshotAsync() which will
37
+ // hit the cache, and/or keep the first AST in memory long enough to be reported
38
+ // here.
36
39
// SEMA_2: 0 {{.*}} source.statistic.num-ast-snaphost-uses
37
40
38
41
// RUN: %sourcekitd-test -req=sema %s -- %s == -req=cursor -pos=1:6 %s -- %s == -req=stats | %FileCheck %s -check-prefix=SEMA_3
You can’t perform that action at this time.
0 commit comments