-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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(editor): Capture indexed access expressions when building completions #8331
fix(editor): Capture indexed access expressions when building completions #8331
Conversation
if (dollarSignIndex === -1) { | ||
userInput = userInput.replace(/^.+(\(|\[|{)/, ''); |
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.
Went through the referenced PR, but I cannot quite tell why we needed to strip parens here. Since parens are needed for indexed access expressions and since all tests still pass, it looks safe to remove. Else let me know.
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.
Works as expected.
2 flaky tests on run #3793 ↗︎
Details:
28-debug.cy.ts • 1 flaky test
29-templates.cy.ts • 1 flaky test
Review all test suite changes for PR #8331 ↗︎ |
✅ All Cypress E2E specs passed |
Got released with |
When building completions, we currently capture indexed access expressions as the index at the end, causing array completions to be offered. This PR accounts for this case.
Follow-up to: #5695