You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've already added a runtime warning for development extensions that will catch the above examples and will upgrade this into a user facing warning after a few months
The text was updated successfully, but these errors were encountered:
Use an overload instead of a conditional type to generate a compile error when using `vscode.previewHtml` command
Conditional types were breaking on our build machine
Yeah this does not work well using an overload since most cases aren't caught. We have to revert the proper fix, 96ddd4f, because the conditional types broke our build (and would have broken anyone using TS 2.8 or older to target newer VS Code versions).
I'm just going to revert the overload too and mark this as not worth the effort
Part of #62630
Discourage people from writing the most simple form of the
vscode.previewHtml
command by making:A compile error. Obviously this compile time check won't block sneaky code like:
or:
We've already added a runtime warning for development extensions that will catch the above examples and will upgrade this into a user facing warning after a few months
The text was updated successfully, but these errors were encountered: