Skip to content

Conversation

@macobo
Copy link
Contributor

@macobo macobo commented Apr 7, 2025

Filters autocomplete only showed "is", "segment" under autocomplete instead of all options. This is due to limitations in the vscode autocomplete package which I don't fully understand but have to do with partially overlapping oneOf definitions. As such the fix was to make each oneOf element as independent of each other as possible.

To test this, run plausible/docs under port 8001 with caddy and check out this autocompletion:

image

Basecamp ref: https://3.basecamp.com/5308029/buckets/36789884/card_tables/cards/8515448386

@macobo macobo requested a review from apata April 7, 2025 09:30
Filters autocomplete only showed `"is", "segment"` under autocomplete
instead of all options. This is due to limitations in the vscode
autocomplete package which I don't fully understand but have to do with
partially overlapping `oneOf` definitions. As such the fix was to make
each `oneOf` element as independent of each other as possible.

Basecamp ref: http://localhost:8001/docs/stats-api-playground
@macobo macobo force-pushed the apiv2-fix-autocomplete branch from 50ac908 to 8a0907f Compare April 7, 2025 09:32
@macobo macobo added this pull request to the merge queue Apr 8, 2025
Merged via the queue into master with commit f8ddecf Apr 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants