import { BaseContextProvider } from "../index.js";
class DiffContextProvider extends BaseContextProvider {
    static description = {
        title: "diff",
        displayTitle: "Git Diff",
        description: "Reference the current git diff",
        type: "normal",
    };
    async getContextItems(query, extras) {
        const diff = await extras.ide.getDiff();
        return [
            {
                description: "The current git diff",
                content: diff.trim() === ""
                    ? "Git shows no current changes."
                    : `\`\`\`git diff\n${diff}\n\`\`\``,
                name: "Git Diff",
            },
        ];
    }
}
export default DiffContextProvider;
