Skip to content
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

Use activiation events to prevent running the extension on unexpected workspaces #116

Open
jens1o opened this issue Feb 11, 2018 · 0 comments · May be fixed by #124
Open

Use activiation events to prevent running the extension on unexpected workspaces #116

jens1o opened this issue Feb 11, 2018 · 0 comments · May be fixed by #124

Comments

@jens1o
Copy link

jens1o commented Feb 11, 2018

Instead of listening to everything

"activationEvents": [
"*"
],

we could use something like:

 "activationEvents": [
    "onLanguage:css",
    "workspaceContains:**/*.css"
],

which will only start the extension when there are css files on the entire workspace(including subfolders) or a css file is going to be created.

This will save memory and unneeded cpu usage.

(extracted from #114 (comment))

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