-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(javascript): correctly handle parentheses between await and optional chaining #6087
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
Conversation
@@ -61,5 +65,9 @@ a?.b?.c.d?.e; | |||
(list || list2)?.length; | |||
(list || list2)?.[list || list2]; | |||
|
|||
async function HelloWorld() { | |||
var x = await (foo.bar.blah)?.hi; |
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.
Not right places WIP
19e9e64
to
9c663c6
Compare
This comment has been minimized.
This comment has been minimized.
Can't wait for this 🤖 mergemergemergemerge |
/cc @j-f1 |
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.
LGTM — just make sure you change the PR title to reflect the contents of the PR before merging.
Feel free to feedback |
@evilebottnawi do u know about the process required to get it VsCode ? i guess it has to be published to npm and the extension updated by maintener ? |
@Sceat I can't understand you |
@evilebottnawi just want to know the ETA for the prettier vscode extension with this fix |
We do releases approximately every 1.5 months, and I believe the VS Code extension uses whatever version you have installed, so once we release a new version, the VS Code extension will be updated. |
docs/
directory)CHANGELOG.unreleased.md
file following the template.✨Try the playground for this PR✨
fixes #5857