Skip to content

Commit af3d8ff

Browse files
committed
Fix selection context
1 parent 1bde817 commit af3d8ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/eca/api.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ function M.add_selection_context()
147147

148148
-- Create context object
149149
local context = {
150-
type = "selection",
150+
type = "file",
151151
path = context_path,
152-
content = selection_text,
153-
source_file = current_file,
154-
start_line = start_line,
155-
end_line = end_line,
152+
lines_range = {
153+
start = start_line,
154+
End = end_line
155+
}
156156
}
157157

158158
-- Get current sidebar and add context

0 commit comments

Comments
 (0)