-
Notifications
You must be signed in to change notification settings - Fork 82
Ease code inclusion #3169
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
Merged
Merged
Ease code inclusion #3169
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1e32544
main.py: Add include_code function
adriendupuis 3f920d1
include_file VS include_code
adriendupuis fee654d
Remove include_file from converted example
adriendupuis 3fa8a8a
image_twig_functions.md: include_code
adriendupuis 8d54540
code_samples_usage.php: Update for include_code
adriendupuis 934ddc4
search_api.md: Rearrange ellipsis for code_samples_usage.php test
adriendupuis 980e3a6
code_samples_usage.php: handle named parameters
adriendupuis e16019a
code_samples_usage.php: handle remove_indent
adriendupuis bdad3cd
code_samples_usage.php: remove quotes around `glue` value
adriendupuis a9391ca
main.py: Docstrings
adriendupuis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add docstring doc to include_file and mention that's it's deprecated/replaced by include_code - so that Copilot won't try to use that
And maybe docstring doc here as well, for the 🤖 to deal with it better 😄
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in a9391ca
I also renamed the first argument from
filenametofile_pathto better match the expected value.