Skip to content

Comments API - How can author.iconPath reference a file bundled with the extension? #174690

@gjsjohnmurray

Description

@gjsjohnmurray

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

image

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 the vscode-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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcommentsComments Provider/Widget/Panel issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions