Skip to content

Commit

Permalink
Fix "Used reference" rendering (microsoft#205606)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens authored Feb 19, 2024
1 parent b44593a commit d686f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/chat/browser/chatListRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1270,14 +1270,14 @@ class ContentReferencesListRenderer implements IListRenderer<IChatContentReferen
templateData.label.element.style.display = 'flex';
const uri = 'uri' in element.reference ? element.reference.uri : element.reference;
if (matchesSomeScheme(uri, Schemas.mailto, Schemas.http, Schemas.https)) {
templateData.label.setResource({ resource: uri, name: uri.toString() }, { icon: Codicon.globe });
} else {
templateData.label.setFile(uri, {
fileKind: FileKind.FILE,
// Should not have this live-updating data on a historical reference
fileDecorations: { badges: false, colors: false },
range: 'range' in element.reference ? element.reference.range : undefined
});
} else {
templateData.label.setResource({ resource: uri, name: uri.toString() }, { icon: Codicon.globe });
}
}

Expand Down

0 comments on commit d686f5f

Please sign in to comment.