Theia: latest python extension is activated always

Created on 17 Aug 2020  路  7Comments  路  Source: eclipse-theia/theia

The issue is that it has a new activation event for custom editors which we don't support yet. I suggest that we list this activation event as supported. It will fixes this bug as well as prevent activating extensions which we cannot support yet.
@eclipse-theia/ecd-theia-committers what do you think?

bug python vscode

All 7 comments

yes, it makes sense (even if we don't support yet custom editors)

@benoitf looking at unsupported activation events: https://github.com/eclipse-theia/theia/issues/4199#issuecomment-507253188 I think maybe we should stop activating eagerly at all (for unsupported). These events either are not used in practice a lot or as a primary or will break experience.

@akosyakov but if we don't activate eagerly, and we don't support a particular event, how will an extension ever get activated if it only uses unsupported events?

There are lot of activation events on VS Code extensions.

So for example, python extension can be activated with a lot of them that are already supported.

And if we don't support it today, probably it will fail in any case. (It was a good behavior only when we were implementing only few of them)

@tsmaeder Please have a look at list of activation events which we don't support: https://github.com/eclipse-theia/theia/issues/4199#issuecomment-507253188 In all cases, but onSearch, we don't support corresponding functionality as well, extension will fail anyway. For onSearch I found only one built-in VS Code extension search-rg which was removed in the meantime and this one also were using * activation event.

Because of it, it feels that activating eagerly on unsupported event is false positive in all cases.

@akosyakov @tsmaeder is the conclusion that if an extension's activation events are all supported then we don't activate eagerly, and if at least just one activation event is not supported then we activate eagerly?

@marechal-p We follow activation events as defined by VS Code without any guessing whether we should activate eagerly anymore. If an extension defines * or workspaceContains activation events only when it will be activated eagerly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cekvenich picture cekvenich  路  3Comments

vinokurig picture vinokurig  路  3Comments

akosyakov picture akosyakov  路  3Comments

pwFoo picture pwFoo  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments