@linkdesk/contracts 0.1.43 → 0.1.44
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/linkdesk.d.ts +8 -0
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -1954,12 +1954,20 @@ export interface EditorAPI {
|
|
|
1954
1954
|
* the read-only selector surface; `setDefault` = the override table's only write port ("Set as default" / "Restore automatic",
|
|
1955
1955
|
* bidirectional sync ); `setDefaultBulk` = the **bulk** form of the same port (2/aggregate write — writes N types at once,
|
|
1956
1956
|
* aggregation logic on the manager side).
|
|
1957
|
+
* Fallback-chain fix (2026-10-07): an **empty extension** (extensionless / dot-starting file) is resolved like any
|
|
1958
|
+
* other — `getPluginFor("")` walks the same pipeline and lands on the role-fallback holder.
|
|
1959
|
+
* D2 (decided 2026-10-07): `listHandlersFor` also lists the **role-fallback holder** when at least one declarer
|
|
1960
|
+
* exists (the "open as text" path stays reachable once a reader claims the type), and `setDefault` accepts the
|
|
1961
|
+
* role-fallback holder as an override target — welcome stays non-assignable (hint-page semantics).
|
|
1957
1962
|
*/
|
|
1958
1963
|
fileAssociation: {
|
|
1959
1964
|
getPluginFor(ext: string): Promise<string | undefined>;
|
|
1960
1965
|
/**
|
|
1961
1966
|
* List all declarers of the extension plus the current-default marker (data source for the "Open with…" picker and the
|
|
1962
1967
|
* settings page dropdown, 01 §T2.1); no declarers ⇒ [].
|
|
1968
|
+
* D2 (2026-10-07): with at least one declarer, the **role-fallback holder** is appended when it is not among them —
|
|
1969
|
+
* the "open as text" path remains selectable after a reader claims the type. With no declarers the result stays []
|
|
1970
|
+
* ( the fallback holder is already the default then; welcome is never listed — ).
|
|
1963
1971
|
* `title` = the **plugin** display name (manifest.name ?? pluginId); `displayName` = the **file type** display name
|
|
1964
1972
|
* (the displayName in the declaration, e.g. .rs → "Rust") — the two differ semantically; naming surfaces use `title`.
|
|
1965
1973
|
*/
|