From 70ad99005202b5d14eb19a6acbed9a238436af0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20K=C3=BChl?= Date: Mon, 17 Apr 2023 18:12:33 +0200 Subject: [PATCH] Activate before *any* language VS Code fires `onLanguage` activation events before `*`, which can lead to language-based extensions being activated before this one. This change adds the generic `onLanguage` activation event *without a language identifier*, which [according to the documentation][1] should activate this extension before any language used. Closes #109 [1]: https://code.visualstudio.com/api/references/activation-events#onLanguage --- CHANGELOG.md | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 564d1bbd..9a519ac6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. ## [Unreleased] +### Changed +- Activate this extension before any language-based ones ## [0.11.0] - 2023-04-15 ### Added diff --git a/package.json b/package.json index bb8e861d..c2d12cd1 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "Other" ], "activationEvents": [ - "*" + "*", + "onLanguage" ], "capabilities": { "untrustedWorkspaces": {