openvsx
openvsx copied to clipboard
Support file extension search
Tested with VSCodium and "search marketplace for '.vim'" which results in ext:vim in its search which results in no extensions found. If I manually remove ext: from the search I get a bunch of extensions (most not relevant) and I can check their feature-addons listed and finally find one that has the extension .vim listed.
I have no clue "which part" is broken but I guess there either is no file extension entry in the internal database (would have to be updated on each publish!) or the search is not trigged by the ext: prefix.
Open VSX does not support searching for file extensions at the moment. Actually that information is not even tracked in the DB, we would have to read it from the package.json of all published extensions.
OK, then the feature request would be to add this to the db (I'd suggest a separate table with extension-id + extension; one column with all entries would need a performance-bad LIKE query) and having the publishing delete all entries for the extension, then add all that are currently in package.json.
Then add file extension to the searching options.
It would be nice if the existing runner could be used to trigger that in batch for the existing extensions, but even without that the table would be filled "over time" and would have use.
It is possible with relatively low effort to read that information for previously published extensions, we've done it before for other migrations.
I don't have time to work on this at the moment, but contributions are welcome! I'm also happy to help if anyone has questions on this.