From b1d175563fd555483d5ae26f23040217b8e0d7a5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 21 Oct 2024 16:44:12 +0000 Subject: [PATCH] Pre-release 0.25.86 --- .github/ISSUE_TEMPLATE/config.yml | 5 +++ .../GeneralSettings/GeneralSettingsView.swift | 10 +++++ Core/Sources/HostApp/GeneralView.swift | 2 +- README.md | 7 +++- Server/package-lock.json | 8 ++-- Server/package.json | 2 +- TROUBLESHOOTING.md | 41 +++++++++++++++++++ 7 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 TROUBLESHOOTING.md diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..434de54 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Questions + url: https://github.com/orgs/community/discussions/categories/copilot + about: Please ask and answer questions about GitHub Copilot here diff --git a/Core/Sources/HostApp/GeneralSettings/GeneralSettingsView.swift b/Core/Sources/HostApp/GeneralSettings/GeneralSettingsView.swift index 63e6092..6fcfd10 100644 --- a/Core/Sources/HostApp/GeneralSettings/GeneralSettingsView.swift +++ b/Core/Sources/HostApp/GeneralSettings/GeneralSettingsView.swift @@ -35,6 +35,16 @@ struct GeneralSettingsView: View { Restart Xcode if greyed out. """ ) + } footer: { + HStack { + Spacer() + Button("?") { + NSWorkspace.shared.open( + URL(string: "https://github.com/github/CopilotForXcode/blob/main/TROUBLESHOOTING.md")! + ) + } + .clipShape(Circle()) + } } .alert( "Enable Extension Permission", diff --git a/Core/Sources/HostApp/GeneralView.swift b/Core/Sources/HostApp/GeneralView.swift index 00bd50c..b4f5d8a 100644 --- a/Core/Sources/HostApp/GeneralView.swift +++ b/Core/Sources/HostApp/GeneralView.swift @@ -16,8 +16,8 @@ struct GeneralView: View { } .task { if isPreview { return } - await store.send(.appear).finish() viewModel.checkStatus() + await store.send(.appear).finish() } } diff --git a/README.md b/README.md index 0327be5..dfe93ec 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,9 @@ We’d love to get your help in making GitHub Copilot better! If you have feedback or encounter any problems, please reach out on our [Feedback forum](https://github.com/orgs/community/discussions/categories/copilot). -## Acknowledgement +## Acknowledgements -Thank you to @intitni for creating the original that this project is based on. +Thank you to @intitni for creating the original project that this is based on. + +Attributions can be found under About when running the app or in +[Credits.rtf](./Copilot%20for%20Xcode/Credits.rtf). diff --git a/Server/package-lock.json b/Server/package-lock.json index dc70180..c3c586a 100644 --- a/Server/package-lock.json +++ b/Server/package-lock.json @@ -8,13 +8,13 @@ "name": "@github/copilot-xcode", "version": "0.0.1", "dependencies": { - "@github/copilot-language-server": "^1.239.0" + "@github/copilot-language-server": "^1.241.0" } }, "node_modules/@github/copilot-language-server": { - "version": "1.239.0", - "resolved": "https://registry.npmjs.org/@github/copilot-language-server/-/copilot-language-server-1.239.0.tgz", - "integrity": "sha512-9hc4yKSVJQuE+BAdoP9EhOAFv0FlZG1XrzxJ9tPZvf65EADPbdPpZlgLtUDldKur6hQTdBSDhSbbBY9X8qJr7A==", + "version": "1.241.0", + "resolved": "https://registry.npmjs.org/@github/copilot-language-server/-/copilot-language-server-1.241.0.tgz", + "integrity": "sha512-jjyAc+vUgi9fgDQlXLVA4JvoMZOTZK6I5BgAm1hbfi93iSS8mZF4zGnikC9EfEuLg/anJdc1EMxdFQeBdUOC9A==", "bin": { "copilot-language-server": "dist/language-server.js" } diff --git a/Server/package.json b/Server/package.json index 7ebdb0d..586ad87 100644 --- a/Server/package.json +++ b/Server/package.json @@ -4,6 +4,6 @@ "description": "Package for downloading @github/copilot-language-server", "private": true, "dependencies": { - "@github/copilot-language-server": "^1.239.0" + "@github/copilot-language-server": "^1.241.0" } } diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md new file mode 100644 index 0000000..1d127f8 --- /dev/null +++ b/TROUBLESHOOTING.md @@ -0,0 +1,41 @@ +# Troubleshooting for Copilot for Xcode + +If you are having trouble with Copilot for Xcode follow these steps to resolve +common issues: + +1. Check for updates and restart Xcode. Ensure that Copilot for Xcode has the + [latest release](https://github.com/github/CopilotForXcode/releases/latest) + by click `Check for Updates` in the settings or under the status menu. After + updating, restart Xcode. + +2. Ensure that the Copilot for Xcode extension is enabled. Open Xcode and go to + the top menu bar and open the `Editor` menu. If there is no `GitHub Copilot` + menu is under `Editor` then [extension permission](#extension-permission) + needs to be enabled. If the `GitHub Copilot` menu is shown but grayed out, + then Xcode needs to be restarted to enable the extension. + +3. Need more help? If these steps don't resolve the issue, please [open an + issue](https://github.com/github/CopilotForXcode/issues/new/choose). + +## Extension Permission + +GitHub Copilot for Xcode is an Xcode Source Editor extension and requires the +extension to be enabled. In the Copilot for Xcode settings, clicking `Extension +Permission` will open the System Settings to the Extensions page where `GitHub +Copilot` can be enabled under `Xcode Source Editor`. + +Or you can navigate to the permission manually depending on your OS version: + +| macOS | Location | +| :--- | :--- | +| 15 | System Settings > General > Login Items > Extensions > Xcode Source Editor | +| 13 & 14 | System Settings > Privacy & Security > Extensions > Xcode Source Editor | +| 12 | System Preferences > Extensions | + +## Accessibility Permission + +GitHub Copilot for Xcode requires accessibility permission to receive +information from the active Xcode editor. + +Enable in System Settings under `Privacy & Security` > `Accessibility` > +`GitHub Copilot for Xcode Extension` and turn on the toggle.