Skip to content

Conversation

@Andarist
Copy link
Contributor

fixes #52874

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Feb 20, 2023
case SyntaxKind.CaseClause:
const tracker = newCaseClauseTracker(typeChecker, (node.parent as CaseClause).parent.clauses);
const tracker = newCaseClauseTracker(typeChecker, (parent as CaseClause).parent.clauses);

Copy link
Member

Choose a reason for hiding this comment

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

Nit: randomly added whitespace here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eh, committing using github UI and their code suggestions can be risky… let’s try again, from mobile 😝

Copy link
Member

Choose a reason for hiding this comment

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

I find that github suggestions auto-add an extra newline sometimes which can cause this; it has to be manually deleted when making the suggestion.

@DanielRosenwasser DanielRosenwasser merged commit 38b951e into microsoft:main Feb 21, 2023
@Andarist Andarist deleted the fix/switch-case-completion-parenthesizes-expressions branch February 21, 2023 18:51
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

Completions error when completing a string in parentheses

4 participants