You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,20 @@ The `ExtensionService` is a program that operates in the background and performs
18
18
19
19
Most of the logics are implemented inside the package `Core` and `Tool`.
20
20
21
-
- The `CopilotService` is responsible for communicating with the GitHub Copilot LSP.
22
21
- The `Service` is responsible for handling the requests from the `EditorExtension`, communicating with the `CopilotService`, update the code blocks and present the GUI.
23
22
- The `Client` is basically just a wrapper around the XPCService
24
23
- The `SuggestionInjector` is responsible for injecting the suggestions into the code. Used in comment mode to present the suggestions, and all modes to accept suggestions.
25
-
- The `Environment` contains some swappable global functions. It is used to make testing easier.
26
-
- The `SuggestionWidget` is responsible for presenting the suggestions in floating widget mode.
24
+
- The `SuggestionWidget` is responsible for the UI of the widgets.
27
25
28
26
## Building and Archiving the App
29
27
30
28
1. Update the xcconfig files, launchAgent.plist, and Tool/Configs/Configurations.swift.
31
29
2. Build or archive the Copilot for Xcode target.
32
30
3. If Xcode complains that the pro package doesn't exist, please remove the package from the project, and update the last function in Core/Package.swift to return false.
33
31
34
-
## Testing Extension
32
+
## Testing Source Editor Extension
35
33
36
-
Just run both the `ExtensionService` and the `EditorExtension` Target.
34
+
Just run both the `ExtensionService` and the `EditorExtension` Target. Read [Testing Your Source Editor Extension](https://developer.apple.com/documentation/xcodekit/testing_your_source_editor_extension) for more details.
0 commit comments