0x-jerry / vscode-hexo-utils

vscode sidebar for hexo.
https://marketplace.visualstudio.com/items?itemName=fantasy.vscode-hexo-utils
MIT License
46 stars 11 forks source link

Only activate when workspace has `_config.yml` #24

Closed bytemain closed 4 years ago

bytemain commented 4 years ago

Is your feature request related to a problem? Please describe.

it's better to activate extension when needed; so activated if workspace have related files, such as _config.yml.

Describe the solution you'd like https://github.com/cwxyz007/vscode-hexo-utils/blob/master/package.json#L29

add: "workspaceContains:_config.yml",

Describe alternatives you've considered as above.

Additional context nop

0x-jerry commented 4 years ago

Nice idea, and do you want to make a PR? If you want, just make one.

bytemain commented 4 years ago

sure, I'll make a pr it later

bytemain commented 4 years ago

it seem that the actividybar's icon appear even if the plugin is not activated..

the same as the command, they are provided by package.json.

I use a toast for test. image

so this img show that the extension are not activated, but the icon still exists. image