github / github/CopilotForXcode

Swift Code Completion does not include a closing brace

Open
#265 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
6.3k
Forks
2k
Avg merge
2m
Merged PRs (30d)
2

Description

**Describe the bug**
If you let copilot generate a function, as it generates suggestions, when it is done, it never inserts the closing brace '}' so the end result is always a compilation error.

**Versions**
- Copilot for Xcode: 0.34
- Xcode: 16.3
- macOS: 15.4.1

**Steps to reproduce**
1. create a new project or open existing one
2. type func and let copilot start generating code. It will never include the closing } causing the compiler to complain.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.