Skip to content

Commit 9080e2e

Browse files
committed
Update code completion instructions to use dynamic file path and cursor position in example
1 parent a2b2373 commit 9080e2e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/vscode/src/constants/instructions.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ Your response must begin with a markdown heading identifying the file and the cu
1212
row + 1
1313
}:${
1414
column + 1
15-
})". Always refer to the symbol "<missing_text>" as "cursor position" and "replacement" as "completion". Example:\n### Code completion: \`src/index.ts\` (25:5)
15+
})". Always refer to the symbol "<missing_text>" as "cursor position" and "replacement" as "completion". Example:
16+
17+
### Code completion: \`${file_path}\` (${row + 1}:${column + 1})
18+
1619
\`\`\`typescript
1720
!== undefined
1821
\`\`\`
22+
1923
The variable is possibly not defined.
2024
</system>`
2125

0 commit comments

Comments
 (0)