chrome-devtools-frontend 1.0.968818 → 1.0.969345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,9 @@
5
5
  "dependencies": {
6
6
  "@codemirror/autocomplete": "0.19.12",
7
7
  "@codemirror/closebrackets": "0.19.0",
8
- "@codemirror/commands": "0.19.7",
8
+ "@codemirror/commands": "0.19.8",
9
9
  "@codemirror/comment": "0.19.0",
10
- "@codemirror/fold": "0.19.2",
10
+ "@codemirror/fold": "0.19.3",
11
11
  "@codemirror/gutter": "0.19.9",
12
12
  "@codemirror/highlight": "0.19.7",
13
13
  "@codemirror/history": "0.19.2",
@@ -15,11 +15,11 @@
15
15
  "@codemirror/lang-css": "0.19.3",
16
16
  "@codemirror/lang-html": "0.19.4",
17
17
  "@codemirror/lang-java": "0.19.1",
18
- "@codemirror/lang-javascript": "0.19.6",
18
+ "@codemirror/lang-javascript": "0.19.7",
19
19
  "@codemirror/lang-json": "0.19.1",
20
- "@codemirror/lang-markdown": "0.19.4",
20
+ "@codemirror/lang-markdown": "0.19.6",
21
21
  "@codemirror/lang-php": "0.19.1",
22
- "@codemirror/lang-python": "0.19.2",
22
+ "@codemirror/lang-python": "0.19.4",
23
23
  "@codemirror/lang-wast": "0.19.0",
24
24
  "@codemirror/lang-xml": "0.19.2",
25
25
  "@codemirror/language": "0.19.7",
@@ -27,14 +27,14 @@
27
27
  "@codemirror/matchbrackets": "0.19.3",
28
28
  "@codemirror/panel": "0.19.1",
29
29
  "@codemirror/rangeset": "0.19.6",
30
- "@codemirror/search": "0.19.5",
30
+ "@codemirror/search": "0.19.6",
31
31
  "@codemirror/state": "0.19.6",
32
- "@codemirror/stream-parser": "0.19.3",
33
- "@codemirror/text": "0.19.5",
34
- "@codemirror/tooltip": "0.19.12",
35
- "@codemirror/view": "0.19.39",
32
+ "@codemirror/stream-parser": "0.19.5",
33
+ "@codemirror/text": "0.19.6",
34
+ "@codemirror/tooltip": "0.19.13",
35
+ "@codemirror/view": "0.19.42",
36
36
  "@lezer/common": "0.15.11",
37
- "@lezer/lr": "0.15.6",
37
+ "@lezer/lr": "0.15.8",
38
38
  "@rollup/plugin-node-resolve": "^13.0.4",
39
39
  "rollup-plugin-dts": "^4.0.0",
40
40
  "rollup-plugin-terser": "^7.0.2",
@@ -388,8 +388,8 @@ export class TimelineOverviewBase extends UI.Widget.VBox implements TimelineOver
388
388
  reset(): void {
389
389
  }
390
390
 
391
- overviewInfoPromise(_x: number): Promise<Element|null> {
392
- return Promise.resolve((null as Element | null));
391
+ async overviewInfoPromise(_x: number): Promise<Element|null> {
392
+ return null;
393
393
  }
394
394
 
395
395
  setCalculator(calculator: TimelineOverviewCalculator): void {
@@ -578,8 +578,10 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
578
578
  if (this.lineToScrollTo !== null) {
579
579
  if (this.loaded && this.isShowing()) {
580
580
  const {textEditor} = this;
581
- const position = textEditor.toOffset({lineNumber: this.lineToScrollTo, columnNumber: 0});
582
- textEditor.dispatch({effects: CodeMirror.EditorView.scrollTo.of(CodeMirror.EditorSelection.cursor(position))});
581
+ // DevTools history items are 0-based, but CodeMirror is 1-based, so we have to increment the
582
+ // line we want to scroll to by 1.
583
+ const position = textEditor.toOffset({lineNumber: this.lineToScrollTo + 1, columnNumber: 0});
584
+ textEditor.dispatch({effects: CodeMirror.EditorView.scrollIntoView(position, {y: 'start'})});
583
585
  this.lineToScrollTo = null;
584
586
  }
585
587
  }
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
55
55
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
56
56
  },
57
- "version": "1.0.968818"
57
+ "version": "1.0.969345"
58
58
  }