Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor send prompt #33

Merged
merged 6 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion denops/aider/bufferOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ async function sendPromptFromFloatingWindow(denops: Denops, prompt: string): Pro
if (aiderBuf === undefined) {
return;
}
await openFloatingWindow(denops, aiderBuf.bufnr);

await aider().sendPrompt(denops, aiderBuf.jobId, prompt);
}
Expand Down
4 changes: 0 additions & 4 deletions denops/aider/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ export async function main(denops: Denops): Promise<void> {

await command("silentAddCurrentFile", "0", async () => {
await addFileToAider(denops, openBufferType, "add", { openBuf: false });
await denops.cmd("fclose!");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

( ;´ワ `;)つ☆

await denops.cmd("silent! e!");
}),

await command(
Expand All @@ -171,8 +169,6 @@ export async function main(denops: Denops): Promise<void> {
await addFileToAider(denops, openBufferType, "read-only", {
openBuf: false,
});
await denops.cmd("fclose!");
await denops.cmd("silent! e!");
}),

await command(
Expand Down