-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
[extension activation] Extension not activated on certain contribution points. #198295
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.84.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Thanks a lot for the information @joyceerhl , I was not aware of the notion of this rule, it makes sense! I'll actually play with the I checked the API docs, maybe this could be documented more directly? I was looking here https://code.visualstudio.com/api/references/activation-events#onLanguage If so let me know and I'll be happy to prepare a documentation PR. |
Please feel free to send a PR, thank you! |
Dear VSCode devs,
this is a follow up to microsoft/vscode-discussions#901 , pinging you here as I believe there may be a bug, not sure
Starting with VSCode 1.75 (I believe), when extensions contribute a language, they don't need to declare it in
activation
events. This works well for our extension.v
files (cc: https://github.com/ejgallego/coq-lsp ), however, we'd also like our extension to be activated on certain markdown files ending in.mv
.This is the relevant part of our package.json
The situation here is strange:
.mv
files work fine and are recognized by our language server..mv
file, the extension won't be activated..v
files, which are also declared oncontributes.language
I'm not sure if this is intended or a bug, but given the recent changes to activation in 1.75 I thought I'd signal this to you folks.
Steps to reproduce
examples
as your workspace for example), the extension will be activatedonLanguage:markdown
activation eventThe text was updated successfully, but these errors were encountered: