Skip to content

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Nov 20, 2025

No description provided.

@alexr00 alexr00 requested a review from mjbvz November 20, 2025 14:59
@alexr00 alexr00 enabled auto-merge (squash) November 20, 2025 14:59
@alexr00 alexr00 self-assigned this Nov 20, 2025
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 20, 2025
Copy link
Contributor

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

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

Thanks! Good find. Surprised the signature of t doesn't catch this:

		export function t(message: string, ...args: Array<string | number | boolean>): string;

@alexr00 alexr00 merged commit f9104f4 into main Nov 20, 2025
6 checks passed
@alexr00 alexr00 deleted the alexr00/cooing-crane branch November 20, 2025 17:21
@mjbvz
Copy link
Contributor

mjbvz commented Nov 20, 2025

Oh it's because of the record overload :/

function t(message: string, args: Record<string, any>): string;

I guess function's match Record<string, any>.

mjbvz added a commit to mjbvz/vscode that referenced this pull request Nov 20, 2025
We specify the allowed types for the `...rest` overload, but not for the record. Not sure why we didn't specify it in this case but it would have caught microsoft/vscode-pull-request-github#8177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants