mirror of
https://github.com/SilasMarvin/lsp-ai.git
synced 2025-12-18 23:14:28 +01:00
Rebased and cleaned
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use indexmap::IndexSet;
|
use indexmap::IndexSet;
|
||||||
use lsp_types::{Position, TextDocumentPositionParams};
|
use lsp_types::TextDocumentPositionParams;
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use ropey::Rope;
|
use ropey::Rope;
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ async fn do_build_prompt(
|
|||||||
memory_backend: Arc<Box<dyn MemoryBackend + Send + Sync>>,
|
memory_backend: Arc<Box<dyn MemoryBackend + Send + Sync>>,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
let prompt = memory_backend
|
let prompt = memory_backend
|
||||||
.build_prompt(¶ms.position, params.prompt_type, params.params)
|
.build_prompt(¶ms.position, params.prompt_type, ¶ms.params)
|
||||||
.await?;
|
.await?;
|
||||||
params
|
params
|
||||||
.tx
|
.tx
|
||||||
|
|||||||
Reference in New Issue
Block a user