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

Activate extension on vscode startup via setting or globally. #140

Closed
Confectrician opened this issue May 24, 2019 · 2 comments · Fixed by #142
Closed

Activate extension on vscode startup via setting or globally. #140

Confectrician opened this issue May 24, 2019 · 2 comments · Fixed by #142

Comments

@Confectrician
Copy link
Collaborator

Confectrician commented May 24, 2019

I think the need of opening an openHAB related file can be confusing.
Especially when one uses vscode mainly for openHAB configuration.

My idea is to start the extension on vscode startup, but provide a setting which prevents this behavior of one doesn't want it to be started directly.

Reference:
https://code.visualstudio.com/api/references/activation-events#Start-up

@Confectrician
Copy link
Collaborator Author

Maybe the better solution:
https://code.visualstudio.com/api/references/activation-events#workspaceContains

Check for typical openhab folder structures and files and activate the extension immediately.
No setting needed.

@Confectrician
Copy link
Collaborator Author

This would also be needed for the discussed jsr support in #141

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

Successfully merging a pull request may close this issue.

1 participant