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

fix(46589): Extra ? added to method in method signature completion for optional method #46594

Merged
merged 1 commit into from Nov 3, 2021

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #46589

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Oct 29, 2021
@a-tarasyuk a-tarasyuk marked this pull request as draft October 29, 2021 21:32
@a-tarasyuk a-tarasyuk force-pushed the fix/46589 branch 2 times, most recently from 6bb521f to b1f2db7 Compare October 29, 2021 21:45
@a-tarasyuk a-tarasyuk marked this pull request as ready for review October 29, 2021 21:46
Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

🌟 Thanks!

Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

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

We shouldn't get rid of optional altogether in the codefix helper function, I think that is why there are tests failing on CI. Left a comment with possible solutions.

src/services/codefixes/helpers.ts Outdated Show resolved Hide resolved
Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

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

I think this is closer to being what we want, just left a comment for one case left to consider. Thanks :)

src/services/completions.ts Outdated Show resolved Hide resolved
Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

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

Left a comment for a typo, but I think other than that we're good to go now. Thanks! ✨

src/services/codefixes/helpers.ts Outdated Show resolved Hide resolved
@andrewbranch
Copy link
Member

@typescript-bot cherry-pick this to release-4.5

@typescript-bot
Copy link
Collaborator

typescript-bot commented Nov 3, 2021

Heya @andrewbranch, I've started to run the task to cherry-pick this into release-4.5 on this PR at cd33fc8. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

Hey @andrewbranch, I've opened #46667 for you.

typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Nov 3, 2021
Component commits:
cd33fc8 fix(46589): omit ? in method signature completion for optional methods
@andrewbranch andrewbranch merged commit 7264cf7 into microsoft:main Nov 3, 2021
DanielRosenwasser pushed a commit that referenced this pull request Nov 3, 2021
Component commits:
cd33fc8 fix(46589): omit ? in method signature completion for optional methods

Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extra ? added to method in method signature completion for optional method
4 participants