-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension development shouldn't check for engines.vscode being * #31574
Comments
Yeah agree. @sandy081 moving to you since it seems the API check is done in I wonder if we should just always allow a version to be "*" given that we allow this when you run Otherwise, the simplest way of knowing that you are running inside the extension development host is via |
What does it mean if an extension has Better improvement would be to allow it only during extension development. |
I faced this pain when I tried to understand which engine I should specify to get the typings for |
Ignoring @joaomoreno What is the validation in vsce? Does it allow @alexandrudima FYI |
Though I think it does not apply since one uses VSCE when ready to publish, at which point the engine should not be |
Since we do not support Given that VSCE will guard it, I think it is ok to allow |
I disagree with changing the engine check logic. |
@alexandrudima Can you please state your reasons. |
The engine check logic should be 100% the same when a developer tries out their extension and when the extension is installed on a user machine. In other words, it is very important to have reproducibility, especially around something that can brick your extension. And what is the use-case? What percentage of extension authors need to use |
I have this item in #71048 (will do it in May):
The logic for
Also plan to have a hidden command |
If we are going away from using |
It is already invalid everywhere in the runtime checks, that's why I kindly ask to not touch the logic. |
I mean also while installing extensions, where we check this to get the compatible extension to install. |
@sandy081 Do you mean there are today extensions published in the marketplace with the engine |
@alexandrudima Yes, there can be extensions published with I am sure there are no such extensions because as you said we do not load them in ext host. |
That is no longer the case. Can we close this issue then? I also agree we should keep the |
Testing #31448
We often have to change
engines.vscode
to*
in order to get the latestvscode.d.ts
while developing an extension. If you F5 that extension you'll get an error that the vscode version isn't valid. This is always such a pain to go through every time one needs to test an extension using a new API.IMO in extension development mode, the extension should still be loaded. This error shouldn't be there.
The text was updated successfully, but these errors were encountered: