Open jennybc opened 2 weeks ago
Seem like another relevant doc: https://docs.npmjs.com/cli/v7/configuring-npm/package-json
Triage:
posit
for extensions we publish to the Marketplace and positron
for extensions that are built-in (positron-r
, positron-python
, etc.)
I'm talking about this, e.g.:
https://github.com/posit-dev/positron/blob/e842d83525976960dc5c8a0e2d3b9eda22744627/extensions/positron-r/package.json#L6
A possibly incomplete list of technical implications:
An extension can register a URI handler, which is something I'm implementing for positron-r, starting with #5231. An extension can only handle URIs addressed to it, which means they must start like so:
{product-name}://{publisher}.{extension.name}
In #5231, I've made
positron
thepublisher
of positron-r. That's not written in stone, but I'm quite sure it should not bevscode
. For "normal" (meaning: not built-in) extensions, this really is a publisher in the marketplace sense and, when such a URI is activated, it leads to activation and/or installation of said extension.--disable-extensions
, you could imagine thepublisher
field possibly being relevant.positron
orposit
as the publisher? Literally, what happens with our tests?More questions:
positron
?posit
?Posit
in both the VS Code Marketplace and in the OpenVSX Registry, so I suspect it would be confusing to useposit
for extensions, like positron-r, that are built-in.publisher
for? The positron-* extensions seem like a clear yes, although positron-python is a special duck. Anything else?Docs on publishing, which include a wee bit on the significance of the
publisher
field (though not much relevant to our case):https://code.visualstudio.com/api/working-with-extensions/publishing-extension