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

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

Issue 2911313002: Update the analysis server diagnostic page - re-enable code completion and overlay pages, (Closed)
Patch Set: small tweaks Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:convert'; 5 import 'dart:convert';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:math'; 7 import 'dart:math';
8 8
9 import 'package:analysis_server/protocol/protocol.dart'; 9 import 'package:analysis_server/protocol/protocol.dart';
10 import 'package:analysis_server/protocol/protocol_generated.dart' 10 import 'package:analysis_server/protocol/protocol_generated.dart'
11 hide AnalysisOptions; 11 hide AnalysisOptions;
12 import 'package:analysis_server/src/analysis_server.dart'; 12 import 'package:analysis_server/src/analysis_server.dart';
13 import 'package:analysis_server/src/domain_completion.dart'; 13 import 'package:analysis_server/src/domain_completion.dart';
14 import 'package:analysis_server/src/domain_diagnostic.dart'; 14 import 'package:analysis_server/src/domain_diagnostic.dart';
15 import 'package:analysis_server/src/domain_execution.dart'; 15 import 'package:analysis_server/src/domain_execution.dart';
16 import 'package:analysis_server/src/plugin/plugin_manager.dart'; 16 import 'package:analysis_server/src/plugin/plugin_manager.dart';
17 import 'package:analysis_server/src/server/http_server.dart';
17 import 'package:analysis_server/src/services/completion/completion_performance.d art'; 18 import 'package:analysis_server/src/services/completion/completion_performance.d art';
18 import 'package:analysis_server/src/socket_server.dart'; 19 import 'package:analysis_server/src/socket_server.dart';
19 import 'package:analysis_server/src/status/get_handler.dart';
20 import 'package:analyzer/exception/exception.dart'; 20 import 'package:analyzer/exception/exception.dart';
21 import 'package:analyzer/file_system/file_system.dart'; 21 import 'package:analyzer/file_system/file_system.dart';
22 import 'package:analyzer/instrumentation/instrumentation.dart'; 22 import 'package:analyzer/instrumentation/instrumentation.dart';
23 import 'package:analyzer/source/error_processor.dart'; 23 import 'package:analyzer/source/error_processor.dart';
24 import 'package:analyzer/source/package_map_resolver.dart'; 24 import 'package:analyzer/source/package_map_resolver.dart';
25 import 'package:analyzer/source/sdk_ext.dart'; 25 import 'package:analyzer/source/sdk_ext.dart';
26 import 'package:analyzer/src/context/source.dart'; 26 import 'package:analyzer/src/context/source.dart';
27 import 'package:analyzer/src/dart/analysis/driver.dart'; 27 import 'package:analyzer/src/dart/analysis/driver.dart';
28 import 'package:analyzer/src/dart/sdk/sdk.dart'; 28 import 'package:analyzer/src/dart/sdk/sdk.dart';
29 import 'package:analyzer/src/generated/engine.dart'; 29 import 'package:analyzer/src/generated/engine.dart';
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 String path, Map<String, String> params, String innerHtml, 1312 String path, Map<String, String> params, String innerHtml,
1313 [bool hasError = false]) { 1313 [bool hasError = false]) {
1314 Uri uri = params.isEmpty 1314 Uri uri = params.isEmpty
1315 ? new Uri(path: path) 1315 ? new Uri(path: path)
1316 : new Uri(path: path, queryParameters: params); 1316 : new Uri(path: path, queryParameters: params);
1317 String href = HTML_ESCAPE.convert(uri.toString()); 1317 String href = HTML_ESCAPE.convert(uri.toString());
1318 String classAttribute = hasError ? ' class="error"' : ''; 1318 String classAttribute = hasError ? ' class="error"' : '';
1319 return '<a href="$href" $classAttribute>$innerHtml</a>'; 1319 return '<a href="$href" $classAttribute>$innerHtml</a>';
1320 } 1320 }
1321 } 1321 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analysis_server/lib/src/status/pages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698