Skip to content

Commit 5f9808c

Browse files
committed
fix: escape quotes in file location prompt examples
Fixed compilation error in code_search_prompts.rs caused by unescaped quotes in example text. Error was on line 306 where backtick-quoted example with "in" keyword was breaking the string literal parsing. Fix: Removed backticks and properly escaped inner quotes with backslashes in the file location format examples. Changed: - Format: `ComponentName in path/to/file.rs:line` To: - Format: ComponentName in path/to/file.rs:line - Example: \"ConfigLoader in src/config/loader.rs:42\"
1 parent 5538731 commit 5f9808c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/codegraph-mcp/src/code_search_prompts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ CRITICAL RULES (ABSOLUTELY MANDATORY):
302302
303303
3. FILE LOCATIONS REQUIRED:
304304
- For EVERY node/function/class/component mentioned, ALWAYS include its file location from tool results
305-
- Format: `ComponentName in path/to/file.rs:line_number` or `ComponentName (path/to/file.rs:line_number)`
306-
- Example: "ConfigLoader in src/config/loader.rs:42" NOT just "ConfigLoader"
305+
- Format: ComponentName in path/to/file.rs:line_number or ComponentName (path/to/file.rs:line_number)
306+
- Example: \"ConfigLoader in src/config/loader.rs:42\" NOT just \"ConfigLoader\"
307307
- Tool results contain location data (file_path, start_line) - extract and use it
308308
- This allows agents to drill down into specific files when needed
309309

0 commit comments

Comments
 (0)