Skip to content

Conversation

@sheetalkamat
Copy link
Member

Discovered that every error needs to update baseline which is not what this test is for so just changed it so we would need baseline update if and only if the first error code changes.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 3, 2023
@microsoft-github-policy-service

Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping @sheetalkamat, @mjbvz, @zkat, and @joj for you. Feel free to loop in other consumers/maintainers if necessary

default:
return info.languageService.getSupportedCodeFixes(fileName);
// Make this stable list of single item so we dont have to update the baseline for every additional error
return [info.languageService.getSupportedCodeFixes(fileName)[0]];
Copy link
Member

Choose a reason for hiding this comment

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

If we happen to change what supported code fix comes first, will this also change? Maybe that's unlikely...

Copy link
Member Author

Choose a reason for hiding this comment

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

yep thats probably a rare one compared to now when we have to update this everytime.

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.

Thank you 👍

@sheetalkamat sheetalkamat merged commit ddadea1 into main Feb 3, 2023
@sheetalkamat sheetalkamat deleted the supportedCodeFix branch February 3, 2023 21:17
@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

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants