Skip to content

Commit ea25998

Browse files
committed
Update README.md
1 parent d079c1a commit ea25998

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Thanks to [LSP-copilot](https://github.com/TerminalFi/LSP-copilot) for showing t
1818
- Folder Access
1919
- Maybe Input Monitoring (Realtime Suggestions Only)
2020

21-
22-
2321
## Installation and Setup
2422

2523
1. Download the Copilot for Xcode.app from the latest release, and extract it to the Applications folder.
@@ -46,12 +44,16 @@ The first time the actions run, the extension will ask for 2 types of permission
4644

4745
**About realtime suggestions**
4846

49-
The implementation feels fragile to me.
47+
The implementation won't feel as smooth as that of VSCode.
5048

5149
The magic behind it is that it will keep calling the action from the menu when you are not typing, clicking or moving your mouse. So it will have to listen to those events, I am not sure if people like it.
5250

5351
Hope that next year, Apple can spend some time on Xcode Extensions.
5452

53+
Known Issues:
54+
55+
- If a realtime suggestions request is triggered, it will block your editor until the result is return.
56+
5557
## Prevent Suggestions Being Committed
5658

5759
Since the suggestions are presented as comments, they are in your code. If you are not careful enough, they can be committed to your git repo. To avoid that, I would recommend adding a pre-commit git hook to prevent this from happening. Maybe later I will add an action for that.
@@ -60,8 +62,8 @@ Since the suggestions are presented as comments, they are in your code. If you a
6062
#!/bin/sh
6163

6264
# Check if the commit message contains the string
63-
if git diff --cached --diff-filter=A | grep -q "/*========== Copilot Suggestion"; then
64-
echo "Error: Commit contains Copilot suggestions."
65+
if git diff --cached --diff-filter=ACMR | grep -q "/*========== Copilot Suggestion"; then
66+
echo "Error: Commit contains Copilot suggestions generated by Copilot for Xcode."
6567
exit 1
6668
fi
6769
```
@@ -95,7 +97,3 @@ fi
9597
**Q: Will it work in future Xcode updates?**
9698

9799
> A: I don't know. This extension uses many tricks to do its job, and these tricks can break in the future.
98-
99-
## How It Works
100-
Check my [other extension](https://github.com/intitni/XccurateFormatter), you can find a short introduction there.
101-

0 commit comments

Comments
 (0)