Skip to content

Make typings on showInformationMessage, showWarningMessage, showErrorMessage strict with items as strings#137672

Merged
jrieken merged 1 commit intomicrosoft:mainfrom
zardoy:main
Dec 9, 2021
Merged

Make typings on showInformationMessage, showWarningMessage, showErrorMessage strict with items as strings#137672
jrieken merged 1 commit intomicrosoft:mainfrom
zardoy:main

Conversation

@zardoy
Copy link
Contributor

@zardoy zardoy commented Nov 22, 2021

This PR fixes #

As I understand these changes should go here instead of DefinitelyTyped repo.

By API these methods return only these strings that developer passes as arguments, so why don't we make him happy with actual items suggestions in IDE?

…ErrorMessage` strict with items as strings
@zardoy
Copy link
Contributor Author

zardoy commented Nov 22, 2021

I also wanted to make suggestions work with MessageItems. So I wanted to turn MessageItem into generic, but it would be a breaking change.

How do you handle breaking changes here in vscode.d.ts that would improve DX?

@jrieken jrieken added this to the December 2021 milestone Nov 23, 2021
@jrieken jrieken added api-finalization under-discussion Issue is under discussion for relevance, priority, approach labels Nov 23, 2021
@jrieken
Copy link
Member

jrieken commented Nov 23, 2021

How do you handle breaking changes here in vscode.d.ts that would improve DX?

Very simple: make no breaking changes.

@jrieken jrieken merged commit 37f23f6 into microsoft:main Dec 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api-finalization under-discussion Issue is under discussion for relevance, priority, approach

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants