Skip to content

Commit 58590d0

Browse files
committed
Merge branch 'main' into develop
2 parents ade3d61 + 72c41a1 commit 58590d0

2 files changed

Lines changed: 3 additions & 24 deletions

File tree

DEVELOPMENT.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ Most of the logics are implemented inside the package `Core` and `Tool`.
2929

3030
1. Update the xcconfig files, bridgeLaunchAgent.plist, and Tool/Configs/Configurations.swift.
3131
2. Build or archive the Copilot for Xcode target.
32-
3. If Xcode complains that the pro package doesn't exist, please remove the package from the project.
3332

34-
## Testing Source Editor Extension
33+
## Testing Source Editor Extension and Service
3534

3635
Just run both the `ExtensionService`, `CommunicationBridge` and the `EditorExtension` Target. Read [Testing Your Source Editor Extension](https://developer.apple.com/documentation/xcodekit/testing_your_source_editor_extension) for more details.
3736

37+
If you are not testing the source editor extension, it's recommended to archive and install a debug version of the Copilot for Xcode and test with the bundled source editor extension.
38+
3839
## SwiftUI Previews
3940

4041
Looks like SwiftUI Previews are not very happy with Objective-C packages when running with app targets. To use previews, please switch schemes to the package product targets.

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,6 @@ The installed language server is located at `~/Library/Application Support/com.i
165165
166166
The installed language server is located at `~/Library/Application Support/com.intii.CopilotForXcode/Codeium/executable/`.
167167

168-
#### Using Locally Run LLMs
169-
170-
You can also use locally run LLMs or as a suggestion provider using the [Custom Suggestion Service](https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode) extension. It supports:
171-
172-
- LLM with OpenAI compatible completions API
173-
- LLM with OpenAI compatible chat completions API
174-
- [Tabby](https://tabby.tabbyml.com)
175-
- etc.
176-
177168
### Setting Up Chat Feature
178169

179170
1. In the host app, navigate to "Service - Chat Model".
@@ -262,14 +253,6 @@ You can detach the chat panel by simply dragging it away. Once detached, the cha
262253

263254
The chat panel allows for chat scope to temporarily control the context of the conversation for the latest message. To use a scope, simply prefix the message with `@scope`.
264255

265-
| Scope | Description |
266-
| :--------: | ---------------------------------------------------------------------------------------- |
267-
| `@file` | Includes the metadata of the editing document and line annotations in the system prompt. |
268-
| `@code` | Includes the focused/selected code and everything from `@file` in the system prompt. |
269-
| `@sense` | Experimental. Read the relevant information of the focused code |
270-
| `@project` | Experimental. Access content of the project |
271-
| `@web` | Allow the bot to search on Bing or query from a web page |
272-
273256
`@code` is on by default, if `Use @code scope by default in chat context.` is on. Otherwise, `@file` will be on by default.
274257

275258
To use scopes, you can prefix a message with `@code`.
@@ -294,7 +277,6 @@ If you need to end a plugin, you can just type
294277
| :--------------------: | ----------------------------------------------------------------------------------------------------------------------------------------- |
295278
| `/run` | Runs the command under the project root. |
296279
| | Environment variable: <br>- `PROJECT_ROOT` to get the project root. <br>- `FILE_PATH` to get the editing file path. |
297-
| `/math` | Solves a math problem in natural language |
298280
| `/search` | Search on Bing and summarize the results. You have to setup the Bing Search API in the host app before using it. |
299281
| `/shortcut(name)` | Run a shortcut from the Shortcuts.app, and use the following message as the input. |
300282
| | If the message is empty, it will use the previous message as input. The output of the shortcut will be printed as a reply from the bot. |
@@ -319,10 +301,6 @@ This feature is recommended when you need to update a specific piece of code. So
319301

320302
The chat panel allows for chat scope to temporarily control the context of the conversation for the latest message. To use a scope, simply prefix the message with `@scope`.
321303

322-
| Scope | Description |
323-
| :--------: | ---------------------------------------------------------------------------------------- |
324-
| `@sense` | Experimental. Read the relevant information of the focused code |
325-
326304
To use scopes, you can prefix a message with `@sense`.
327305

328306
You can use shorthand to represent a scope, such as `@sense`, and enable multiple scopes with `@c+web`.

0 commit comments

Comments
 (0)