Skip to content

Commit 569a4fb

Browse files
committed
Update README.md
1 parent bce106b commit 569a4fb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ Thanks to [LSP-copilot](https://github.com/TerminalFi/LSP-copilot) for showing t
2727
5. After signing in, go back to the app and click "Confirm Sign-in" to finish.
2828
5. Enable the extension in the Settings.app, then maybe restart Xcode.
2929

30-
The first time the actions run, the extension will ask for 2 types of permissions:
30+
The first time the commands run, the extension will ask for 2 types of permissions:
3131
1. Accessibility API: which the extension uses to get the editing file path.
3232
2. Folder Access: the extension needs, to run some Apple Scripts to get the project/workspace path.
3333

34-
## Actions
34+
## Commands
3535

3636
- Get Suggestions: Get suggestions for the editing file at the current cursor position.
3737
- Next Suggestion: If there is more than 1 suggestion, switch to the next one.
@@ -40,19 +40,20 @@ The first time the actions run, the extension will ask for 2 types of permission
4040
- Reject Suggestion: Remove the suggestion comments.
4141
- Turn On Real-time Suggestions: When turn on, Copilot will auto-insert suggestion comments to your code while editing. You have to manually turn it on for every open window of Xcode.
4242
- Turn Off Real-time Suggestions: Turns the real-time suggestions off.
43-
- Real-time Suggestions: It is an entry point only for Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this action to bring you real-time suggestions.
43+
- Real-time Suggestions: It is an entry point only for Copilot for Xcode. When suggestions are successfully fetched, Copilot for Xcode will run this command to present the suggestions.
44+
- Prefetch Suggestions: It is an entry point only for Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this command to prefetch real-time suggestions.
4445

4546
**About real-time suggestions**
4647

4748
The implementation won't feel as smooth as that of VSCode.
4849

49-
The magic behind it is that it will keep calling the action from the menu when you are not typing, or clicking mouse. So it will have to listen to those events, I am not sure if people like it.
50+
The magic behind it is that it will keep calling the command from the menu when you are not typing, or clicking mouse. So it will have to listen to those events, I am not sure if people like it.
5051

5152
Hope that next year, Apple can spend some time on Xcode Extensions.
5253

5354
## Prevent Suggestions Being Committed
5455

55-
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.
56+
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 command for that.
5657

5758
```sh
5859
#!/bin/sh

0 commit comments

Comments
 (0)