Skip to content

Commit 106417c

Browse files
committed
Merge tag '0.21.1' into develop
2 parents d43798c + c861bc3 commit 106417c

File tree

7 files changed

+52
-31
lines changed

7 files changed

+52
-31
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
id: before-reporting
1414
attributes:
1515
label: Before Reporting
16-
description: Before reporting the bug, we suggestion that you first refer to the [FAQ](https://github.com/intitni/CopilotForXcode/issues/65) to check if it may address your issue. And search for existing issues to avoid duplication.
16+
description: Before reporting the bug, we suggestion that you first refer to the [FAQ](https://github.com/intitni/CopilotForXcode/wiki/Frequently-Asked-Questions) to check if it may address your issue. And search for existing issues to avoid duplication.
1717
options:
1818
- label: I have checked FAQ, and there is no solution to my issue
1919
required: true
@@ -57,4 +57,4 @@ body:
5757
id: node-version
5858
attributes:
5959
label: Node version
60-
60+

.github/ISSUE_TEMPLATE/help_wanted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
id: before-reporting
88
attributes:
99
label: Before Reporting
10-
description: Before asking for help, we suggestion that you first refer to the [FAQ](https://github.com/intitni/CopilotForXcode/issues/65) to check if it may address your issue. And search for existing issues to avoid duplication.
10+
description: Before asking for help, we suggestion that you first refer to the [FAQ](https://github.com/intitni/CopilotForXcode/wiki/Frequently-Asked-Questions) to check if it may address your issue. And search for existing issues to avoid duplication.
1111
options:
1212
- label: I have checked FAQ, and there is no solution to my issue
1313
required: true

.github/workflows/close_inactive_issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
days-before-issue-stale: 30
1616
days-before-issue-close: 14
1717
stale-issue-label: "stale"
18-
exempt-issue-labels: "low priority, help wanted"
18+
exempt-issue-labels: "low priority, help wanted, planned"
1919
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
2020
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
2121
days-before-pr-stale: -1

Core/Package.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ let package = Package(
269269
name: "PlusFeatureFlag",
270270
dependencies: [
271271
].pro([
272-
"LicenseManagement"
272+
"LicenseManagement",
273273
])
274274
),
275275

@@ -398,10 +398,18 @@ import Foundation
398398

399399
func isProIncluded(file: StaticString = #file) -> Bool {
400400
let filePath = "\(file)"
401-
let url = URL(fileURLWithPath: filePath)
401+
let fileURL = URL(fileURLWithPath: filePath)
402+
let rootURL = fileURL
402403
.deletingLastPathComponent()
403404
.deletingLastPathComponent()
404-
.appendingPathComponent("Pro/Package.swift")
405-
return FileManager.default.fileExists(atPath: url.path)
405+
let folderURL = rootURL.appendingPathComponent("Pro")
406+
if !FileManager.default.fileExists(atPath: folderURL.path) {
407+
return false
408+
}
409+
let packageManifestURL = folderURL.appendingPathComponent("Package.swift")
410+
if !FileManager.default.fileExists(atPath: packageManifestURL.path) {
411+
return false
412+
}
413+
return true
406414
}
407415

README.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Copilot for Xcode is an Xcode Source Editor Extension that provides GitHub Copil
2323
- [Install](#install)
2424
- [Enable the Extension](#enable-the-extension)
2525
- [Granting Permissions to the App](#granting-permissions-to-the-app)
26+
- [Setting Up Key Bindings](#setting-up-key-bindings)
2627
- [Setting Up GitHub Copilot](#setting-up-github-copilot)
2728
- [Setting Up Codeium](#setting-up-codeium)
2829
- [Setting Up OpenAI API Key](#setting-up-openai-api-key)
2930
- [Managing `CopilotForXcodeExtensionService.app`](#managing-copilotforxcodeextensionserviceapp)
3031
- [Update](#update)
3132
- [Feature](#feature)
32-
- [Key Bindings](#key-bindings)
3333
- [Plus Features](#plus-features)
3434
- [Limitations](#limitations)
3535
- [License](#license)
@@ -97,6 +97,27 @@ Alternatively, you may manually grant the required permissions by navigating to
9797

9898
If you encounter an alert requesting permission that you have previously granted, please remove the permission from the list and add it again to re-grant the necessary permissions.
9999

100+
### Setting Up Key Bindings
101+
102+
The extension will work better if you use key bindings.
103+
104+
It looks like there is no way to add default key bindings to commands, but you can set them up in `Xcode settings > Key Bindings`. You can filter the list by typing `copilot` in the search bar.
105+
106+
A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that should cause no conflict is
107+
108+
| Command | Key Binding |
109+
| ------------------- | ----------- |
110+
| Accept Suggestions | `⌥}` |
111+
| Reject Suggestion | `⌥{` |
112+
| Next Suggestion | `⌥>` |
113+
| Previous Suggestion | `⌥<` |
114+
| Open Chat | `⌥"` |
115+
| Explain Selection | `⌥\|` |
116+
117+
Essentially using `⌥⇧` as the "access" key combination for all bindings.
118+
119+
Another convenient method to access commands is by using the `⇧⌘/` shortcut to search for a command in the menu bar.
120+
100121
### Setting Up GitHub Copilot
101122

102123
1. In the host app, switch to the service tab and click on GitHub Copilot to access your GitHub Copilot account settings.
@@ -281,26 +302,6 @@ For Send Message, Single Round Dialog and Custom Chat commands, you can use the
281302
| `{{active_editor_file_url}}` | The URL of the active file in the editor. |
282303
| `{{active_editor_file_name}}` | The name of the active file in the editor. |
283304

284-
## Key Bindings
285-
286-
It looks like there is no way to add default key bindings to commands, but you can set them up in `Xcode settings > Key Bindings`. You can filter the list by typing `copilot` in the search bar.
287-
288-
A [recommended setup](https://github.com/intitni/CopilotForXcode/issues/14) that should cause no conflict is
289-
290-
| Command | Key Binding |
291-
| ------------------- | ----------- |
292-
| Get Suggestions | `⌥?` |
293-
| Accept Suggestions | `⌥}` |
294-
| Reject Suggestion | `⌥{` |
295-
| Next Suggestion | `⌥>` |
296-
| Previous Suggestion | `⌥<` |
297-
| Open Chat | `⌥"` |
298-
| Explain Selection | `⌥\|` |
299-
300-
Essentially using `⌥⇧` as the "access" key combination for all bindings.
301-
302-
Another convenient method to access commands is by using the `⇧⌘/` shortcut to search for a command in the menu bar.
303-
304305
## Plus Features
305306

306307
The pre-built binary contains a set of exclusive features that can only be accessed with a Plus license key. To obtain a license key, please visit [this link](https://intii.lemonsqueezy.com/checkout/buy/298a8d4c-11fb-4ecd-b328-049589645449).

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 0.21.0
2-
APP_BUILD = 220
1+
APP_VERSION = 0.21.1
2+
APP_BUILD = 221

appcast.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<channel>
44
<title>Copilot for Xcode</title>
55

6+
<item>
7+
<title>0.21.1</title>
8+
<pubDate>Sun, 13 Aug 2023 17:02:38 +0800</pubDate>
9+
<sparkle:version>221</sparkle:version>
10+
<sparkle:shortVersionString>0.21.1</sparkle:shortVersionString>
11+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12+
<sparkle:releaseNotesLink>
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.21.1
14+
</sparkle:releaseNotesLink>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.21.1/Copilot.for.Xcode.app.zip" length="31114478" type="application/octet-stream" sparkle:edSignature="5sy6qTLc/NidIemMn2jftJKPMlXNJWbqhghXDzLvk2j9zsBI6xtoG6xIWBYBtBtwoQcZZtG4cwn2VDl5c5YGBw=="/>
16+
</item>
17+
618
<item>
719
<title>0.21.0</title>
820
<pubDate>Wed, 09 Aug 2023 15:45:24 +0800</pubDate>

0 commit comments

Comments
 (0)