fix: diagnostics lnum starts with 1 (#892)

This commit is contained in:
yetone
2024-11-23 23:08:10 +08:00
committed by GitHub
parent 9042f5f202
commit 67e946ef13
4 changed files with 40 additions and 9 deletions

View File

@@ -201,7 +201,7 @@ function Selection:create_editing_input()
input = mentions.new_content
local project_context = mentions.enable_project_context and RepoMap.get_repo_map(file_ext) or nil
local diagnostics = Utils.get_current_selection_diagnostics()
local diagnostics = Utils.get_current_selection_diagnostics(code_bufnr, self.selection)
Llm.stream({
bufnr = code_bufnr,