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

repl: support optional chaining during autocompletion #33450

Closed

Conversation

BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented May 18, 2020

repl: support optional chaining during autocompletion

This makes sure the autocompletion is able to handle optional
chaining notations.

repl: simplify repl autocompletion

This refactors the repl autocompletion code for simplicity and
readability.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the repl Issues and PRs related to the REPL subsystem. label May 18, 2020
@BridgeAR BridgeAR changed the title repl: support optional chaining previews repl: support optional chaining autocompletion May 18, 2020
This makes sure the autocompletion is able to handle optional
chaining notations.

Signed-off-by: Ruben Bridgewater <[email protected]>
This refactors the repl autocompletion code for simplicity and
readability.

Signed-off-by: Ruben Bridgewater <[email protected]>
@BridgeAR BridgeAR force-pushed the repl-optional-chaining-preview branch from 28b745c to 8c487ad Compare May 18, 2020 00:47
@BridgeAR BridgeAR changed the title repl: support optional chaining autocompletion repl: support optional chaining during autocompletion May 18, 2020
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 18, 2020

CI: https://ci.nodejs.org/job/node-test-pull-request/31373/ ✅ (green besides one known ci issue)

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 18, 2020
lib/repl.js Outdated Show resolved Hide resolved
lib/repl.js Outdated Show resolved Hide resolved
lib/repl.js Outdated Show resolved Hide resolved
Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

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

LGTM :]

left a few nits

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 19, 2020

BridgeAR added a commit to BridgeAR/node that referenced this pull request May 20, 2020
This makes sure the autocompletion is able to handle optional
chaining notations.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: nodejs#33450
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
BridgeAR added a commit to BridgeAR/node that referenced this pull request May 20, 2020
This refactors the repl autocompletion code for simplicity and
readability.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: nodejs#33450
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@BridgeAR
Copy link
Member Author

Landed in 9de08f7...19d9e20

@BridgeAR BridgeAR closed this May 20, 2020
Copy link

@azitennis50 azitennis50 left a comment

Choose a reason for hiding this comment

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

``

codebytere pushed a commit that referenced this pull request Jun 18, 2020
This makes sure the autocompletion is able to handle optional
chaining notations.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: #33450
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
codebytere pushed a commit that referenced this pull request Jun 18, 2020
This refactors the repl autocompletion code for simplicity and
readability.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: #33450
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@codebytere codebytere mentioned this pull request Jun 28, 2020
@codebytere
Copy link
Member

@BridgeAR should this go back to v12.x? it's a bit conflict heavy, so would you mind opening a manual backport if so? Feel free to remove the label otherwise :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants