Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release Notes:
/diff
to the assistant #16821 (I think? Maybe more needs to be done?)Not sure if this fully closes #16821 but a basic git diff has been added to the assistant panel. As this is my first PR and I am new, any feedback would be appreciated. I am happy to make this an extension if the zed team thinks an extension would be a better place for this. Thanks! 👋
Below are screenshots of what it looks like in the assistant panel.
How the command looks in the assistant panel
![Screenshot 2025-02-07 at 23 48 40](https://private-user-images.githubusercontent.com/20873258/411114553-59b9247b-3f3c-4560-98ed-90555dc466c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTE0MTcsIm5iZiI6MTczOTM1MTExNywicGF0aCI6Ii8yMDg3MzI1OC80MTExMTQ1NTMtNTliOTI0N2ItM2YzYy00NTYwLTk4ZWQtOTA1NTVkYzQ2NmMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDUxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyNmQ5Mzk2NGI3Y2U2NTUxN2FkOGYwODlmZDc2MDEwMGI2MDA3MDllYzk3YTdiMTdmOGYxNjZhYzMyYThjMjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jBwtThs8HNB3cVu-khoof3gLZ0LB-gKHyCnH8qHGKc8)
How the diff looks when added to the context
![Screenshot 2025-02-07 at 23 48 51](https://private-user-images.githubusercontent.com/20873258/411114631-148a20e2-2e42-46d2-a503-ce5ccd5df474.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTE0MTcsIm5iZiI6MTczOTM1MTExNywicGF0aCI6Ii8yMDg3MzI1OC80MTExMTQ2MzEtMTQ4YTIwZTItMmU0Mi00NmQyLWE1MDMtY2U1Y2NkNWRmNDc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDUxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjNmY2OTM5MWRjNGM5ZDVkNzA0ZGExNzhjOTA5N2Q4MDRkNDk4NTM5Y2FhMGMxYjIyZjFhZWE5NjNmODJlNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SUGMK-mD_wG5w_DUHUlPNY59GYcoA0h_6kFs7bz_06o)