Skip to content
Discussion options

You must be logged in to vote

Looking at the source, there's no setting for this. Inline code becomes a file pill based on the text alone, and nothing checks that the file exists. Anything starting with / counts as a path, which is why /api/v1/health gets picked up:

export function inlineCodeFilePathCandidate(codeText: string): string | null {
const trimmed = codeText.trim();
if (trimmed.length === 0 || INLINE_CODE_DISQUALIFIER_PATTERN.test(trimmed)) return null;
const candidate = isWindowsAbsolutePath(trimmed) ? trimmed : trimmed.replaceAll("\\", "/");
const hasPosition = POSITION_SUFFIX_PATTERN.test(candidate);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hopperelec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants