Skip to content

Commit d686f5f

Browse files
authored
Fix "Used reference" rendering (microsoft#205606)
1 parent b44593a commit d686f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatListRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,14 +1270,14 @@ class ContentReferencesListRenderer implements IListRenderer<IChatContentReferen
12701270
templateData.label.element.style.display = 'flex';
12711271
const uri = 'uri' in element.reference ? element.reference.uri : element.reference;
12721272
if (matchesSomeScheme(uri, Schemas.mailto, Schemas.http, Schemas.https)) {
1273+
templateData.label.setResource({ resource: uri, name: uri.toString() }, { icon: Codicon.globe });
1274+
} else {
12731275
templateData.label.setFile(uri, {
12741276
fileKind: FileKind.FILE,
12751277
// Should not have this live-updating data on a historical reference
12761278
fileDecorations: { badges: false, colors: false },
12771279
range: 'range' in element.reference ? element.reference.range : undefined
12781280
});
1279-
} else {
1280-
templateData.label.setResource({ resource: uri, name: uri.toString() }, { icon: Codicon.globe });
12811281
}
12821282
}
12831283

0 commit comments

Comments
 (0)