From 08a791876f3a58bdd628faa2342864de9157d624 Mon Sep 17 00:00:00 2001 From: Simon Graband Date: Mon, 22 Apr 2024 10:46:55 +0200 Subject: [PATCH] Fix onLanguage activation event 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. --- packages/plugin-ext/src/hosted/browser/hosted-plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts b/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts index c298d7df1195b..e972a1603f36a 100644 --- a/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts +++ b/packages/plugin-ext/src/hosted/browser/hosted-plugin.ts @@ -409,6 +409,7 @@ export class HostedPluginSupport extends AbstractHostedPluginSupport { + await this.activateByEvent('onLanguage'); await this.activateByEvent(`onLanguage:${languageId}`); }