-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feature] Option for explicitly enabling Qalc in non .qalc documents #35
Comments
For the sake of this discussion let's define a couple terms:
I am trying to think of how best to implement this from a user perspective. I can see at least two options:
I think # 2 gives a little more flexibility and maybe some performance gains as you can tell Qalc which files types to look at and to completely ignore certain file types (rather than searching for //qalc:on in all files) |
Thanks for considering this feature request! If by # 1 you mean having the ability to invoke Overall, # 2 could be the best tradeoff — less magic and more explicit/intentional without the performance penalty. |
If you don’t want to overcomplicate the user settings and keep
It should be easier to maintain from a user perspective. Set enabled languages, mark checkbox, and done, without needing to keep track of a second array of languages. In the event you want to turn that checkbox into an array in the future for even added granularity, it should be straightforward to automate that migration. Just an idea. |
Addressed in version 0.4 |
Awesome, thanks for adding support for it! |
Thanks, Nick, for such a cool, useful extension!
For non .qalc documents, like Markdown, it would be awesome if we had a setting for enabling Qalc for specific blocks instead of parsing the entire document by default.
This increased granularity would prevent Qalc from unnecessarily parsing entire, large Markdown documents and, simultaneously, prevent it from doing unwanted calculations.
Making this available as a setting would be super welcome.
Example using HTML comments:
Alternatively, using code blocks could be even cleaner:
Live test using
//qalc:off
and//qalc:on
by settinglet qalcEnabled = false;
by default inMathDocument::evaluate()
:vs-code-qalc/src/document.ts
Line 64 in 92ad4e6
The text was updated successfully, but these errors were encountered: