-
Notifications
You must be signed in to change notification settings - Fork 1.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
Use more specific activationEvents
#1
Comments
First, Thanks You Very Much for the suggestion. yep, you're right. that should not be activated if there are no HTML file in work-space. Because this is meaning less. okay! I have changed |
I think, we should not block In case if anyone wants to start a server for a unknown reason......... :p ....... |
😁 |
Sorry! I don't understand. Did you mean about the naming convention of git repo? |
Yes, the name of git repo ... |
okay. I got that. I'll update that tonight 👍 |
I updated the name. Is that okay? |
Now it's perfect |
okay! I got another issue. |
😮 It supports glob patterns. You can try If it doesn't work, maybe we should open a vscode issue. (And this is the original PR) |
even if I write this, extension will be activated because of the first line. |
I would suggest that we should stop using We can add more patterns for common web project structure later |
but if we don't use |
I guess that's because you still have I mean "activationEvents": [
"workspaceContains:*.html",
"onLanguage:html",
"onCommand:extension.liveServer.goOnline",
"onCommand:extension.liveServer.goOffline"
] |
Anyway, I am able to restrict that by code. :) |
👌 |
This extension is activated all the time. As a result, the status bar item is always visible.
I think we can use multiple
activationEvents
like"workspaceContains: **/*.html"
,"workspaceContains: _config.yml"
and something else.The text was updated successfully, but these errors were encountered: