Skip to content

Commit

Permalink
Activate before *any* language
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mkhl committed Apr 17, 2023
1 parent 2cc45b7 commit 70ad990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"Other"
],
"activationEvents": [
"*"
"*",
"onLanguage"
],
"capabilities": {
"untrustedWorkspaces": {
Expand Down

0 comments on commit 70ad990

Please sign in to comment.