Skip to content

Commit 6727623

Browse files
committed
Update README.md
1 parent cce1286 commit 6727623

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,19 @@ Or you can add them manually by going to the `Privacy & Security` tab in `System
4444
- Accessibility API: Click `Accessibility`, and add `Copilot for Xcode.app` to the list.
4545
- Input Monitoring: Click `Input Monitoring` and add `Copilot for Xcode.app` to the list.
4646

47+
### Alternative Ways to Launch the XPC Service
48+
49+
The launch agent is set to `RunAtLoad`, so it will start when you log on to your computer. If you have a solution to configure the launch agent to start and stop on demand, please file an issue or pull request (note that the XPC service must be started before the user calls any commands, as it needs to call some of the commands proactively to provide real-time suggestions).
50+
51+
Alternatively, you can skip the Launch Agent part and use other applications to watch Xcode launch and then launch the XPC service when needed. The executable is located at `Copilot for Xcode.app/Contents/MacOS/CopilotForXcodeXPCService`. Or you can remove the `RunAtLoad` field from the plist and run it manually.
52+
4753
## Update
4854

49-
You can manually download the latest release. After updating the app, don't forget to click `Restart XPC Service` in the app to kill the old version and run the new version. (I will make it auto-restartable later. )
55+
You can download the latest version manually from the latest [release](https://github.com/intitni/CopilotForXcode/releases).
56+
57+
If you are upgrading from a version lower than 0.5.1, don't forget to click `Restart XPC Service` in the application after the update to kill the old version and start the new one.
5058

51-
If you want to keep track of the new releases, you can watch this repo's releases to get notifications on updates.
59+
If you want to keep track of the new releases, you can watch the releases of this repo to get notifications about updates.
5260

5361
## Commands
5462

@@ -59,8 +67,8 @@ If you want to keep track of the new releases, you can watch this repo's release
5967
- Reject Suggestion: Remove the suggestion comments.
6068
- Turn On Real-time Suggestions: When turn on, Copilot will auto-insert suggestion comments to your code while editing.
6169
- Turn Off Real-time Suggestions: Turns the real-time suggestions off.
62-
- 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.
63-
- 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.
70+
- Real-time Suggestions: Call only by Copilot for Xcode. When suggestions are successfully fetched, Copilot for Xcode will run this command to present the suggestions.
71+
- Prefetch Suggestions: Call only by Copilot for Xcode. In the background, Copilot for Xcode will occasionally run this command to prefetch real-time suggestions.
6472

6573
**About real-time suggestions**
6674

0 commit comments

Comments
 (0)