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

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1653093002: Add indication of resolver provider to the status page (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analysis_server.src.status.get_handler; 5 library analysis_server.src.status.get_handler;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 Folder folder = _keyForValue(folderMap, operation.context); 1659 Folder folder = _keyForValue(folderMap, operation.context);
1660 if (folder == null) { 1660 if (folder == null) {
1661 buffer.write('<p>Status: Analyzing in unmapped context</p>'); 1661 buffer.write('<p>Status: Analyzing in unmapped context</p>');
1662 } else { 1662 } else {
1663 buffer.write('<p>Status: Analyzing in ${folder.path}</p>'); 1663 buffer.write('<p>Status: Analyzing in ${folder.path}</p>');
1664 } 1664 }
1665 } else { 1665 } else {
1666 buffer.write('<p>Status: Analyzing</p>'); 1666 buffer.write('<p>Status: Analyzing</p>');
1667 } 1667 }
1668 } 1668 }
1669 buffer.write('<p>Using package resolver provider: ');
1670 buffer.write(_server.packageResolverProvider != null);
1671 buffer.write('</p>');
1669 buffer.write('<p>'); 1672 buffer.write('<p>');
1670 buffer.write(makeLink(OVERLAYS_PATH, {}, 'All overlay information')); 1673 buffer.write(makeLink(OVERLAYS_PATH, {}, 'All overlay information'));
1671 buffer.write('</p>'); 1674 buffer.write('</p>');
1672 1675
1673 buffer.write('<p><b>Analysis Contexts</b></p>'); 1676 buffer.write('<p><b>Analysis Contexts</b></p>');
1674 buffer.write('<p>'); 1677 buffer.write('<p>');
1675 bool first = true; 1678 bool first = true;
1676 folders.forEach((Folder folder) { 1679 folders.forEach((Folder folder) {
1677 if (first) { 1680 if (first) {
1678 first = false; 1681 first = false;
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 */ 2472 */
2470 static String makeLink( 2473 static String makeLink(
2471 String path, Map<String, String> params, String innerHtml, 2474 String path, Map<String, String> params, String innerHtml,
2472 [bool hasError = false]) { 2475 [bool hasError = false]) {
2473 Uri uri = new Uri(path: path, queryParameters: params); 2476 Uri uri = new Uri(path: path, queryParameters: params);
2474 String href = HTML_ESCAPE.convert(uri.toString()); 2477 String href = HTML_ESCAPE.convert(uri.toString());
2475 String classAttribute = hasError ? ' class="error"' : ''; 2478 String classAttribute = hasError ? ' class="error"' : '';
2476 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2479 return '<a href="$href"$classAttribute>$innerHtml</a>';
2477 } 2480 }
2478 } 2481 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698