You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/extension/prompts/node/agent/fileLinkificationInstructions.tsx
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,13 @@ export class FileLinkificationInstructions extends PromptElement<{}> {
12
12
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations. Use links inside normal sentences, not as the entire answer.<br/>
13
13
Format examples:<br/>
14
14
- `The handler lives in [path/to/file.ts](path/to/file.ts#L10).` (single line)<br/>
15
-
- `See [path/to/file.ts](path/to/file.ts#L10-12) for the range.`<br/>
15
+
- `See [path/to/file.ts](path/to/file.ts#L10-L12) for the range.`<br/>
16
16
- `Configuration is defined in [path/to/file.ts](path/to/file.ts).` (whole file)<br/>
17
-
When you need a bullet list of references, write a short description before the link, for example:<br/>
NEVER cite file paths as plain text when referring to specific locations. For example, instead of saying `The function is in exampleScript.ts at line 25.`, say `The function is in [exampleScript.ts](exampleScript.ts#L25).`<br/>
23
22
Critical rules:<br/>
24
23
- Link text must be the exact file path (no backticks, no `#L` in the visible text, no extra wording). Keep the `#L` anchor in the **link target**, e.g. `[src/file.ts](src/file.ts#L25)`.<br/>
25
24
- Always include both brackets **and** parentheses. `[src/file.ts](src/file.ts#L25)` is valid; `[src/file.ts#L25]` is not.<br/>
@@ -29,7 +28,7 @@ export class FileLinkificationInstructions extends PromptElement<{}> {
29
28
- Do not use URIs like file://, vscode://, or https://.<br/>
30
29
- Percent-encode spaces in target only: `[My File.md](My%20File.md)`<br/>
0 commit comments