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

vscode: extension activation scope #70

Open
flyinghermit opened this issue Jan 2, 2023 · 0 comments
Open

vscode: extension activation scope #70

flyinghermit opened this issue Jan 2, 2023 · 0 comments

Comments

@flyinghermit
Copy link

To access files and directories, extensions should register activation points such as when a file is a python file, if the workspace is under a certain directory, or when the user manually activates the extension, etc. Activating our extension when a python file is opened in the editor is the easiest way to implement it with zero user effort. But we also don't want our extension to be activated when users are working with other python projects.

To scope down the extension activation point, we have two options:

  1. Implement "activate" command that allows users to manually activate/deactivate predicate extension.
  2. Auto-activate on certain python files and directories. For example, activating when filenames are <policy_name>.predicate.py or activating under a directory named predicate_policies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant