@vscode/markdown-editor 0.0.2-119 → 0.0.2-120

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.
package/README.md CHANGED
@@ -241,6 +241,15 @@ indentation, marker, and separator cells, including an indented blank line
241
241
  following a list. `lists/mixed-prefix-spaces`, `lists/blank-continuation-spaces`,
242
242
  and `lists/nested-continuation-spaces` isolate these cases; browser tests verify
243
243
  each cell's geometry, clicking, arrow movement, and typing at four font sizes.
244
+ Within a list paragraph, every continuation prefix occupies a source-mapped
245
+ gutter ending at the text column, rather than adding indentation inside it.
246
+ Quote prefixes and list indentation on the same line share that gutter.
247
+ The `lists/same-paragraph-continuation`, `lists/nested-same-paragraph-continuation`,
248
+ and `lists/quoted-same-paragraph-continuation` fixtures show inactive and active
249
+ states. Browser tests cover ordinary, ordered, task, nested and quoted lists,
250
+ tabs, CRLF, hard breaks, wrapped lines, cross-line formatting/link labels,
251
+ multiple continuation lines, prefix clicks, and caret movement.
252
+ Reading presentation retains its existing soft-line-break behavior.
244
253
  The `lists/indent-depth-2`, `lists/indent-depth-uneven`, and `lists/indent-prefix-3`
245
254
  fixtures reconstruct the nested-spacing feedback with minimal sources.
246
255
  Browser geometry assertions also cover wider ordered prefixes, tabs,
@@ -281,6 +290,21 @@ The `HeadingSpacingH1` and `HeadingSpacingH2` fixtures compare first and later
281
290
  headings; browser tests cover their underline spacing across themes, widths,
282
291
  wrapped text, presentation modes, and active or inactive selections.
283
292
 
293
+ An empty, unlocked document defaults to a collapsed selection at offset zero
294
+ when opened, cleared externally, switched into editing presentation, or unlocked.
295
+ This does not take keyboard focus: the caret blinks only while the editor is
296
+ focused. Explicit deselection remains respected until the next document or mode
297
+ transition. Reading and locked documents keep their existing selection behavior.
298
+ `EmptyEditing` captures the empty surface; browser tests verify actual blink
299
+ cycles, blur, typing/deleting, and presentation/lock transitions.
300
+
301
+ Escape clears an existing selection, including a collapsed caret, and cancels
302
+ any pending empty paragraph. Open find/suggestion widgets and focused nested
303
+ controls handle Escape first. With no selection or pending paragraph, Escape
304
+ remains available to the host. Clicking beside or below the document also clears
305
+ selection: the editor fills a fixed-height host so its blank area receives the
306
+ same pointer handling as the margins, without stretching the document itself.
307
+
284
308
  Set `EditorViewOptions.highlightActiveBlock` to `false` to disable the active
285
309
  block's background and glow, or update the live `view.highlightActiveBlock`
286
310
  observable. This does not change active source markers, selection, or editing
package/dist/index.d.ts CHANGED
@@ -1360,6 +1360,7 @@ export declare class EditorView extends Disposable {
1360
1360
  */
1361
1361
  rangeRects(range: OffsetRange): IObservable<readonly SelectionRect[]>;
1362
1362
  constructor(_model: EditorModel, _options?: EditorViewOptions | undefined);
1363
+ private _setupEmptyDocumentSelection;
1363
1364
  /**
1364
1365
  * Mirrors the model's live Ctrl/Cmd state onto the editor root as
1365
1366
  * `.md-mod-down` so CSS can show the link-open underline and pointer cursor