registerUriHandler - extension ID during development #95
-
Hi Everyone, From Docs :
where my.extension is the extension ID. I am not able to set the extension ID, and since I am still developing the value fetched from vscode.extensions.all for my extension does not have an ID. Would be grateful if someone can help me form the appropriate callback url for the URI Handler |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
using
I got using Is there no way to pre-set the value of ID? |
Beta Was this translation helpful? Give feedback.
-
As pointed out by @r3m0t the ID for the extension is created using Hence the URI for the extension would be Reference: https://code.visualstudio.com/api/references/extension-manifest |
Beta Was this translation helpful? Give feedback.
As pointed out by @r3m0t the ID for the extension is created using
<publisher_name>.<extension_name>
and the values of these two are taken frompackage.json
fieldspublisher
andname
Hence the URI for the extension would be
vscode://publisherName.ExtensionName
Reference: https://code.visualstudio.com/api/references/extension-manifest