From 2ec6169025fdeb76ca79eeeb568e8ab31574c2d5 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Wed, 7 Feb 2024 18:14:56 +0800 Subject: [PATCH] fix: Resolve empty filePath in selected_lines - Corrected 'filePath' to return actual file path in selected_lines - Ensured the returned object includes 'filePath' for further processing - This modification addresses integration issues with dev environments --- devchat/ide/vscode_services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devchat/ide/vscode_services.py b/devchat/ide/vscode_services.py index 0b9706c4..cb9a410e 100644 --- a/devchat/ide/vscode_services.py +++ b/devchat/ide/vscode_services.py @@ -136,7 +136,7 @@ def selected_lines(): # continue with the rest of the function return { - "filePath": "", + "filePath": file_path, "selectedText": "".join(_selected_lines), "selectedRange": [start_line, start_col, end_line, end_col], }