diff --git a/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx b/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx index be7d1de1..a1273331 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx @@ -137,11 +137,10 @@ const CodespanWithLink = ({ text, rawText, chatMessageLocation }: { text: string } - // If it's a file path, shorten it and add tooltip + // If it's a file path, shorten it and add tooltip (whether or not it's a link) let displayText = link?.displayText || text let tooltip: string | undefined = undefined - - if (link?.uri && isValidUri(displayText)) { + if (isValidUri(displayText)) { tooltip = getRelative(URI.file(displayText), accessor) // Full path as tooltip displayText = getBasename(displayText) }