@vscode/markdown-editor 0.0.2-131 → 0.0.2-133

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.
@@ -72,6 +72,8 @@ declare interface IEmbeddedCodeEditorFactory {
72
72
  * back to the default (highlighting / {@link BlockViewOptions.renderCustomCodeBlock}).
73
73
  */
74
74
  create(language: string, infoString: string, initialContent: string): IEmbeddedCodeEditor | undefined;
75
+ /** Reposition overlays after the document's layout has been measured. */
76
+ layout?(): void;
75
77
  }
76
78
 
77
79
  export declare type IframeEditorPresentationMode = 'inline' | 'full-width' | 'full-view';
@@ -333,6 +335,7 @@ export declare class VirtualizedIframeEmbeddedEditorFactory implements IEmbedded
333
335
  private _ensureFrameRoot;
334
336
  private _setFrameRoot;
335
337
  private readonly _scheduleLayout;
338
+ layout(): void;
336
339
  private _disposePools;
337
340
  }
338
341
 
@@ -7126,11 +7126,13 @@ class Wl {
7126
7126
  }
7127
7127
  _scheduleLayout = () => {
7128
7128
  this._layoutFrame || (this._layoutFrame = requestAnimationFrame(() => {
7129
- this._layoutFrame = 0;
7130
- for (const e of this._pools.values())
7131
- e.layout();
7129
+ this._layoutFrame = 0, this.layout();
7132
7130
  }));
7133
7131
  };
7132
+ layout() {
7133
+ for (const e of this._pools.values())
7134
+ e.layout();
7135
+ }
7134
7136
  _disposePools() {
7135
7137
  for (const e of this._pools.values())
7136
7138
  e.dispose();