Skip to content

Commit

Permalink
Status page indicator for contexts w/o .packages.
Browse files Browse the repository at this point in the history
For diagnostic purposes.

See: #24900 for more context.

BUG=24900
R=scheglov@google.com

Review URL: https://codereview.chromium.org/1436343002 .
  • Loading branch information
pq committed Nov 12, 2015
1 parent 0553fd7 commit eac5a0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analysis_server/lib/src/status/get_handler.dart
Expand Up @@ -1300,6 +1300,9 @@ class GetHandler {
String key = folder.shortName;
buffer.write(makeLink(CONTEXT_PATH, {CONTEXT_QUERY_PARAM: folder.path},
key, _hasException(folderMap[folder])));
if (!folder.getChild('.packages').exists) {
buffer.write(' <b>[No .packages file]</b>');
}
});
// TODO(brianwilkerson) Add items for the SDK contexts (currently only one).
buffer.write('</p>');
Expand Down

0 comments on commit eac5a0e

Please sign in to comment.