Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Xcode source completion sample #35724

Merged
merged 8 commits into from
Dec 20, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@
{% data variables.product.prodname_copilot %} offers coding suggestions as you type. For example, type this function
signature in a Swift file:

```shell copy
func CalculateDaysBetweenDates(
```swift copy

Check failure on line 448 in content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md

View workflow job for this annotation

GitHub Actions / lint-content

Fenced code blocks should have a language specified

"swift" is not allowed. When you add a fenced code block, you must specify the code language. Allowed languages are: bash, bicep, csharp, dockerfile, golang, graphql, groovy, html, http, java, javascript, json, jsonc, markdown, powershell, python, ruby, scss, shell, sql, text, typescript, xml, yaml. You can add allowed languages by updating data/code-languages.yml.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I see why you didn't use Swift. I'll check why that's not included in our supported languages.

This comment was marked as spam.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened:

Once that's approved and merged, we can update your branch and merge this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks better 🙂

Screenshot showing the updated content in the preview.

func calculateDaysBetweenDates(
```

{% data variables.product.prodname_copilot %} will automatically suggest an entire function body in grayed text. To accept the first line of a suggestion, press <kbd>Tab</kbd>. To view the full suggestion, hold <kbd>Option</kbd>, and to accept the full suggestion, press <kbd>Option</kbd>+<kbd>Tab</kbd>.
Expand Down
Loading