@punica/editor 1.3.4 → 1.3.5
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/package.json
CHANGED
|
@@ -352,6 +352,13 @@ declare module 'punica' {
|
|
|
352
352
|
* Unique identifier for this opener within the runtime.
|
|
353
353
|
*/
|
|
354
354
|
id: string;
|
|
355
|
+
/**
|
|
356
|
+
* Human-readable name shown in an "Open With…" chooser (e.g. "DuckDB",
|
|
357
|
+
* "CSV Viewer"). Declared in the extension manifest
|
|
358
|
+
* (`integrations.fileOpeners[].label`). Falls back to the opener id when
|
|
359
|
+
* omitted.
|
|
360
|
+
*/
|
|
361
|
+
label?: string;
|
|
355
362
|
/**
|
|
356
363
|
* Command id that will be executed when this opener is selected.
|
|
357
364
|
* The convention is that commands accept at least (path: string, content: string, ctx?: FileOpenContext).
|
|
@@ -395,6 +402,13 @@ declare module 'punica' {
|
|
|
395
402
|
* Returns null when no suitable opener is found.
|
|
396
403
|
*/
|
|
397
404
|
resolve(ctx: FileOpenContext): ResolvedOpener | null;
|
|
405
|
+
/**
|
|
406
|
+
* All openers that match the given file context, ordered by priority
|
|
407
|
+
* (highest first). Powers an "Open With…" chooser: the first entry is
|
|
408
|
+
* what `resolve` would return; the rest are alternatives. Excludes
|
|
409
|
+
* matchless fallback openers. Returns an empty array when none match.
|
|
410
|
+
*/
|
|
411
|
+
resolveAll(ctx: FileOpenContext): ResolvedOpener[];
|
|
398
412
|
}
|
|
399
413
|
}
|
|
400
414
|
}
|