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: implementing "predicate" language #69

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

vscode: implementing "predicate" language #69

flyinghermit opened this issue Jan 2, 2023 · 0 comments

Comments

@flyinghermit
Copy link

This issue is to discuss whether we should implement a new language support for predicate policies.

Since predicate policy files are python code and python files, all other installed extensions that are registered for python language also gets activated while authoring policy files. This result in conflicting IntelliSense including auto suggestion, code completion etc. For optimal user experience, we want only predicate extension to be active while working with policy files. Unfortunately, VS Code does not offer easy way to activate/deactivate other installed extensions, without going through manual configuration update, and in some cases, needing to disable extensions altogether.

The solution to this issue is to implement our own language type as "predicate". This will improve overall user experience by:

  • Keeping out other python extensions, avoiding conflicting IntelliSense in predicate policies.
  • Prevent predicate extension mangling with other python projects.

But supporting new language comes with its own caveat: We will also need to implement syntax highlighting, go-to functionality, etc. Given the scope of predicate policy files, we may not need to implement all the IntelliSense that official python extension supports but this will be something that may take substantial effort. And this needs to be repeated again when we support other programming languages in future besides python.

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