Prefer loading `extension.toml` before `extension.json` (#42884)

Closes #42406

The issue for the fish-extension is that a `extension.json` is still
present next to a `extension.toml`, although the former is deprecated.

We should prefer the `extension.toml` if it is present and only fall
back to the `extension.json` if needed. This PR tackles this.

Release Notes:

- N/A
97792f7fb9Finn Evers committed on 11/17/2025, 2:29:50 PM· committed by GitHubparent9bebf31
1 file changedLine totals unavailable