Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 555f4a0

Browse files
committedJan 23, 2025·
Merge remote-tracking branch 'upstream/main' into hotrestart
2 parents bcabca7 + 9430dd7 commit 555f4a0

File tree

10 files changed

+48
-47
lines changed

10 files changed

+48
-47
lines changed
 

‎.github/workflows/dart.yml

+22-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_analysis_config/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ environment:
77
sdk: ^3.1.0
88

99
dependencies:
10-
lints: ^4.0.0
10+
lints: ^5.0.0

‎dwds/lib/src/debugging/inspector.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ class AppInspector implements AppInspectorInterface {
680680
return _instanceHelper.metadataHelper.isNativeJsError(instanceRef.classRef);
681681
}
682682

683-
/// Request and cache <ScriptRef>s for all the scripts in the application.
683+
/// Request and cache `<ScriptRef>`s for all the scripts in the application.
684684
///
685685
/// This populates [_scriptRefsById], [_scriptIdToLibraryId],
686686
/// [_libraryIdToScriptRefs] and [_serverPathToScriptRef].

‎dwds/lib/src/debugging/metadata/class.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ class ClassMetaData {
9090

9191
/// Type name for Type instances.
9292
///
93-
/// For example, 'int', 'String', 'MyClass', 'List<int>'.
93+
/// For example, `int`, `String`, `MyClass`, `List<int>`.
9494
final String? typeName;
9595

9696
/// The length of the object, if applicable.
9797
final int? length;
9898

9999
/// The dart type name for the object.
100100
///
101-
/// For example, 'int', 'List<String>', 'Null'
101+
/// For example, `int`, `List<String>`, `Null`
102102
String? get dartName => classRef.name;
103103

104104
/// Class ref for the class metadata.

‎dwds/lib/src/injected/client.js

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dwds/lib/src/services/expression_evaluator.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ExpressionEvaluator {
4848
/// Find module path from the XHR call network error message received from chrome.
4949
///
5050
/// Example:
51-
/// NetworkError: Failed to load 'http://<hostname>.com/path/to/module.js?<cache_busting_token>'
51+
/// NetworkError: Failed to load `http://<hostname>.com/path/to/module.js?<cache_busting_token>`
5252
static final _loadModuleErrorRegex =
5353
RegExp(r".*Failed to load '.*\.com/(.*\.js).*");
5454

‎dwds/pubspec.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ dev_dependencies:
5353
frontend_server_common:
5454
path: ../frontend_server_common
5555
js: '>=0.6.4 <0.8.0'
56-
lints: ^4.0.0
5756
pubspec_parse: ^1.2.0
5857
puppeteer: ^3.1.1
5958
stream_channel: ^2.1.2

‎dwds/test/fixtures/project.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import 'dart:io';
66

77
import 'package:path/path.dart' as p;
8-
98
import 'package:test_common/utilities.dart';
109

1110
enum IndexBaseMode { noBase, base }
@@ -48,7 +47,7 @@ class TestProject {
4847
);
4948

5049
/// The URI for the package_config.json is located in:
51-
/// <project directory>/.dart_tool/package_config
50+
/// `<project directory>/.dart_tool/package_config`
5251
Uri get packageConfigFile => p.toUri(
5352
p.join(
5453
absolutePackageDirectory,

‎dwds/web/client.dart

+14-12
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,20 @@ Future<void>? main() {
188188

189189
if (dwdsEnableDevToolsLaunch) {
190190
window.onKeyDown.listen((Event e) {
191-
if (e is KeyboardEvent &&
192-
const [
193-
'd',
194-
'D',
195-
'∂', // alt-d output on Mac
196-
'Î', // shift-alt-D output on Mac
197-
].contains(e.key) &&
198-
e.altKey &&
199-
!e.ctrlKey &&
200-
!e.metaKey) {
201-
e.preventDefault();
202-
launchDevToolsJs.callAsFunction();
191+
if (e.isA<KeyboardEvent>()) {
192+
final event = e as KeyboardEvent;
193+
if (const [
194+
'd',
195+
'D',
196+
'∂', // alt-d output on Mac
197+
'Î', // shift-alt-D output on Mac
198+
].contains(event.key) &&
199+
event.altKey &&
200+
!event.ctrlKey &&
201+
!event.metaKey) {
202+
event.preventDefault();
203+
launchDevToolsJs.callAsFunction();
204+
}
203205
}
204206
});
205207
}

‎test_common/pubspec.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ dependencies:
1616
dev_dependencies:
1717
analysis_config:
1818
path: ../_analysis_config
19-
lints: ^4.0.0
2019
pubspec_parse: ^1.2.2

0 commit comments

Comments
 (0)
Please sign in to comment.