Skip to content

Commit 7c63fea

Browse files
committed
Rename prompt to code to modification
1 parent 7a4ce3d commit 7c63fea

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

Core/Sources/HostApp/CustomCommandSettings/CustomCommandView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct CustomCommandView: View {
149149
case .customChat:
150150
Text("Custom Chat")
151151
case .promptToCode:
152-
Text("Prompt to Code")
152+
Text("Modification")
153153
case .singleRoundDialog:
154154
Text("Single Round Dialog")
155155
}
@@ -201,7 +201,7 @@ struct CustomCommandView: View {
201201
"This command sends a message to the active chat tab. You can provide additional context through the \"Extra System Prompt\" as well."
202202
)
203203
}
204-
SubSection(title: Text("Prompt to Code")) {
204+
SubSection(title: Text("Modification")) {
205205
Text(
206206
"This command opens the prompt-to-code panel and executes the provided requirements on the selected code. You can provide additional context through the \"Extra Context\" as well."
207207
)

Core/Sources/HostApp/CustomCommandSettings/EditCustomCommandView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct EditCustomCommandView: View {
3737
case .sendMessage:
3838
return "Send Message"
3939
case .promptToCode:
40-
return "Prompt to Code"
40+
return "Modification"
4141
case .customChat:
4242
return "Custom Chat"
4343
case .singleRoundDialog:

Core/Sources/HostApp/FeatureSettingsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ struct FeatureSettingsView: View {
2626
}
2727
.sidebarItem(
2828
tag: 2,
29-
title: "Prompt to Code",
30-
subtitle: "Write code with natural language",
29+
title: "Modification",
30+
subtitle: "Write or modify code with natural language",
3131
image: "paintbrush"
3232
)
3333

Core/Sources/HostApp/ServiceView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct ServiceView: View {
3333
)).sidebarItem(
3434
tag: 2,
3535
title: "Chat Models",
36-
subtitle: "Chat, Prompt to Code",
36+
subtitle: "Chat, Modification",
3737
image: "globe"
3838
)
3939

@@ -43,7 +43,7 @@ struct ServiceView: View {
4343
)).sidebarItem(
4444
tag: 3,
4545
title: "Embedding Models",
46-
subtitle: "Chat, Prompt to Code",
46+
subtitle: "Chat, Modification",
4747
image: "globe"
4848
)
4949

Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ struct PseudoCommandHandler: CommandHandler {
207207
}
208208
do {
209209
try await XcodeInspector.shared.safe.latestActiveXcode?
210-
.triggerCopilotCommand(name: "Accept Prompt to Code")
210+
.triggerCopilotCommand(name: "Accept Modification")
211211
} catch {
212212
let last = Self.lastTimeCommandFailedToTriggerWithAccessibilityAPI
213213
let now = Date()

EditorExtension/AcceptPromptToCodeCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import SuggestionBasic
44
import XcodeKit
55

66
class AcceptPromptToCodeCommand: NSObject, XCSourceEditorCommand, CommandType {
7-
var name: String { "Accept Prompt to Code" }
7+
var name: String { "Accept Modification" }
88

99
func perform(
1010
with invocation: XCSourceEditorCommandInvocation,

EditorExtension/PromptToCodeCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44
import XcodeKit
55

66
class PromptToCodeCommand: NSObject, XCSourceEditorCommand, CommandType {
7-
var name: String { "Prompt to Code" }
7+
var name: String { "Write or Modify Code" }
88

99
func perform(
1010
with invocation: XCSourceEditorCommandInvocation,

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Copilot for Xcode is an Xcode Source Editor Extension that provides GitHub Copil
88

99
## Features
1010

11-
- Code Suggestions (powered by GitHub Copilot and Codeium).
12-
- Chat (powered by OpenAI ChatGPT).
13-
- Prompt to Code (powered by OpenAI ChatGPT).
14-
- Custom Commands to extend Chat and Prompt to Code.
11+
- Code Suggestions
12+
- Chat
13+
- Modification
14+
- Custom Commands to extend Chat and Modification.
1515

1616
## Table of Contents
1717

@@ -297,7 +297,7 @@ This feature is recommended when you need to update a specific piece of code. So
297297
- Polishing and correcting grammar and spelling errors in the documentation.
298298
- Translating a localizable strings file.
299299

300-
#### Prompt to Code Scope
300+
#### Modification Scope
301301

302302
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`.
303303

@@ -307,14 +307,14 @@ You can use shorthand to represent a scope, such as `@sense`, and enable multipl
307307

308308
#### Commands
309309

310-
- Prompt to Code: Open a prompt to code window, where you can use natural language to write or edit selected code.
311-
- Accept Prompt to Code: Accept the result of prompt to code.
310+
- Write or Modify Code: Open a modification window, where you can use natural language to write or edit selected code.
311+
- Accept Modification: Accept the result of modification.
312312

313313
### Custom Commands
314314

315-
You can create custom commands that run Chat and Prompt to Code with personalized prompts. These commands are easily accessible from both the Xcode menu bar and the context menu of the circular widget. There are 3 types of custom commands:
315+
You can create custom commands that run Chat and Modification with personalized prompts. These commands are easily accessible from both the Xcode menu bar and the context menu of the circular widget. There are 3 types of custom commands:
316316

317-
- Prompt to Code: Run Prompt to Code with the selected code, and update or write the code using the given prompt, if provided. You can provide additional information through the extra system prompt field.
317+
- Modification: Run Modification with the selected code, and update or write the code using the given prompt, if provided. You can provide additional information through the extra system prompt field.
318318
- Send Message: Open the chat window and immediately send a message, if provided. You can provide more information through the extra system prompt field.
319319
- Custom Chat: Open the chat window and immediately send a message, if provided. You can overwrite the entire system prompt through the system prompt field.
320320
- Single Round Dialog: Send a message to a temporary chat. Useful when you want to run a terminal command with `/run`.

0 commit comments

Comments
 (0)