chrome-devtools-frontend 1.0.1001419 → 1.0.1001476

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.
@@ -256,8 +256,8 @@ export class PersistenceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTyp
256
256
  Promise<void> {
257
257
  const breakpoints = this.breakpointManager.breakpointLocationsForUISourceCode(from).map(
258
258
  breakpointLocation => breakpointLocation.breakpoint);
259
- await Promise.all(breakpoints.map(breakpoint => {
260
- breakpoint.remove(false /* keepInStorage */);
259
+ await Promise.all(breakpoints.map(async breakpoint => {
260
+ await breakpoint.remove(false /* keepInStorage */);
261
261
  return this.breakpointManager.setBreakpoint(
262
262
  to, breakpoint.lineNumber(), breakpoint.columnNumber(), breakpoint.condition(), breakpoint.enabled());
263
263
  }));
@@ -441,7 +441,7 @@ export class DebuggerPlugin extends Plugin {
441
441
  } else {
442
442
  const removeTitle = i18nString(UIStrings.removeBreakpoint, {n: breakpoints.length});
443
443
  contextMenu.debugSection().appendItem(
444
- removeTitle, () => breakpoints.forEach(breakpoint => breakpoint.remove(false)));
444
+ removeTitle, () => breakpoints.forEach(breakpoint => void breakpoint.remove(false)));
445
445
  if (breakpoints.length === 1 && supportsConditionalBreakpoints) {
446
446
  // Editing breakpoints only make sense for conditional breakpoints
447
447
  // and logpoints and both are currently only available for JavaScript
@@ -520,7 +520,7 @@ export class DebuggerPlugin extends Plugin {
520
520
  if (value !== this.muted) {
521
521
  this.muted = value;
522
522
  if (!value) {
523
- this.restoreBreakpointsAfterEditing();
523
+ void this.restoreBreakpointsAfterEditing();
524
524
  } else if (this.editor) {
525
525
  this.editor.dispatch({effects: muteBreakpoints.of(null)});
526
526
  }
@@ -1221,18 +1221,19 @@ export class DebuggerPlugin extends Plugin {
1221
1221
  // breakpoints the breakpoint manager might have (which point into
1222
1222
  // the old file) with the breakpoints we have, which had their
1223
1223
  // positions tracked through the changes.
1224
- private restoreBreakpointsAfterEditing(): void {
1224
+ private async restoreBreakpointsAfterEditing(): Promise<void> {
1225
1225
  const {breakpoints} = this;
1226
1226
  const editor = this.editor as TextEditor.TextEditor.TextEditor;
1227
1227
  this.breakpoints = [];
1228
- for (const {breakpoint, position} of breakpoints) {
1228
+ await Promise.all(breakpoints.map(async description => {
1229
+ const {breakpoint, position} = description;
1229
1230
  const condition = breakpoint.condition(), enabled = breakpoint.enabled();
1230
- breakpoint.remove(false);
1231
+ await breakpoint.remove(false);
1231
1232
  const editorLocation = editor.toLineColumn(position);
1232
1233
  const uiLocation =
1233
1234
  this.transformer.editorLocationToUILocation(editorLocation.lineNumber, editorLocation.columnNumber);
1234
- void this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, condition, enabled);
1235
- }
1235
+ await this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, condition, enabled);
1236
+ }));
1236
1237
  }
1237
1238
 
1238
1239
  private async refreshBreakpoints(): Promise<void> {
@@ -1269,7 +1270,7 @@ export class DebuggerPlugin extends Plugin {
1269
1270
  if (event.shiftKey) {
1270
1271
  breakpoint.setEnabled(!breakpoint.enabled());
1271
1272
  } else {
1272
- breakpoint.remove(false);
1273
+ void breakpoint.remove(false);
1273
1274
  }
1274
1275
  } else if (this.editor) {
1275
1276
  const editorLocation = this.editor.editor.posAtDOM(event.target as unknown as HTMLElement);
@@ -1444,7 +1445,7 @@ export class DebuggerPlugin extends Plugin {
1444
1445
  if (onlyDisable) {
1445
1446
  breakpoint.setEnabled(hasDisabled);
1446
1447
  } else {
1447
- breakpoint.remove(false);
1448
+ void breakpoint.remove(false);
1448
1449
  }
1449
1450
  }
1450
1451
  }
@@ -426,7 +426,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
426
426
  const removeEntryTitle = breakpoints.length > 1 ? i18nString(UIStrings.removeAllBreakpointsInLine) :
427
427
  i18nString(UIStrings.removeBreakpoint);
428
428
  contextMenu.defaultSection().appendItem(
429
- removeEntryTitle, () => breakpoints.map(breakpoint => breakpoint.remove(false /* keepInStorage */)));
429
+ removeEntryTitle, () => breakpoints.map(breakpoint => void breakpoint.remove(false /* keepInStorage */)));
430
430
  if (event.target instanceof Element) {
431
431
  contextMenu.defaultSection().appendItem(
432
432
  i18nString(UIStrings.revealLocation), this.revealLocation.bind(this, event.target));
@@ -487,14 +487,14 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
487
487
 
488
488
  private removeAllBreakpoints(): void {
489
489
  for (const breakpointLocation of this.breakpointManager.allBreakpointLocations()) {
490
- breakpointLocation.breakpoint.remove(false /* keepInStorage */);
490
+ void breakpointLocation.breakpoint.remove(false /* keepInStorage */);
491
491
  }
492
492
  }
493
493
 
494
494
  private removeOtherBreakpoints(selectedBreakpoints: Set<Bindings.BreakpointManager.Breakpoint>): void {
495
495
  for (const breakpointLocation of this.breakpointManager.allBreakpointLocations()) {
496
496
  if (!selectedBreakpoints.has(breakpointLocation.breakpoint)) {
497
- breakpointLocation.breakpoint.remove(false /* keepInStorage */);
497
+ void breakpointLocation.breakpoint.remove(false /* keepInStorage */);
498
498
  }
499
499
  }
500
500
  }
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "vpython third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.1001419"
58
+ "version": "1.0.1001476"
59
59
  }