Skip to content
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

Fix onLanguage activation event #13630

Merged

Conversation

sgraband
Copy link
Contributor

@sgraband sgraband commented Apr 22, 2024

What it does

According to the the VSCode documentation onLanguage (without any language specified) is a valid activation event.
This is used in the built-in emmet extension for example.
Beforehand extensions with this event were not triggered.
With this commit the extensions with onLanguage are activated, when the first language is loaded.

Fixes #13247

How to test

Check that the built-in emmet extension is working by opening an empty .jsx file, typing di and triggering the suggestions (Ctrl+Space). You should get two suggestions from Emmet (dir and div).

Without this change you would get no suggestions, as the extension would not be activated.

Follow-ups

Review checklist

Reminder for reviewers

According to the the VSCode documentation `onLanguage` (without any
language specified) is a valid activation event.
This is used in the built-in emmet extension for example.
Beforehand extensions with this event were not triggered.
With this commit the extensions with `onLanguage` are activated,
when the first language is loaded.
@tsmaeder
Copy link
Contributor

@sgraband how do I verify that "emmet is working"? I get a bunch of proposals, but are they from emmet? How do I tell?

@sgraband
Copy link
Contributor Author

They will have Emmet Abbreviation in their tooltip.

image

@msujew
Copy link
Member

msujew commented Apr 22, 2024

Does this also fix #13607?

@sgraband
Copy link
Contributor Author

I see no reason, on why this should not fix that issue as soon as we update the try.theia-cloud.io deployment. However, we normally only do this for community relases as far as i know.

@tsmaeder tsmaeder merged commit 346822b into eclipse-theia:master Apr 22, 2024
12 of 14 checks passed
@jfaltermeier jfaltermeier added this to the 1.49.0 milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Emmet not working for React
4 participants