Comments API - How can author.iconPath
reference a file bundled with the extension?
#174690
Labels
bug
Issue identified by VS Code Team member as probable bug
comments
Comments Provider/Widget/Panel issues
insiders-released
Patch has been released in VS Code Insiders
verified
Verification succeeded
Milestone
At https://github.com/gjsjohnmurray/vscode-extension-samples/tree/show-iconpath I have created a branch in which the comment-sample example has been amended to set the
author
property of the comments it adds.Here are the lines that create the
author
object:https://github.com/gjsjohnmurray/vscode-extension-samples/blob/e0da92cfdf830988616b7f5f2a905ae0054fa4f4/comment-sample/src/extension.ts#L23-L27
The commented-out one was my original, but when running on Desktop the console of devtools reported that the
file:
resource wasn't allowed. After digging through sources I found how to make it work on that platform by using thevscode-file
scheme.But this doesn't work when running on Codespaces.
What must I set
iconPath
to so the icon appears when running on that platform too?Version: 1.76.0-insider
Commit: dc619de
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Embedder: codespaces
The text was updated successfully, but these errors were encountered: