Skip to content

Activating my extension only in certain markdown files #901

Discussion options

You must be logged in to vote

Hi, I think onLanguage:markdown would be a better event for you. Also, once activated make sure to loop through all open editors for mv files. For example if the user restores a window from the last time they had VS Code open, the events may not fire or may have fired before your extension activated.

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Ninglo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ejgallego
Comment options

You must be logged in to vote
2 replies
@isidorn
Comment options

@ejgallego
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants