scztt / vscode-supercollider

MIT License
56 stars 6 forks source link

Add code evaluation settings for blink and post evaluate message #13

Open okhick opened 1 year ago

okhick commented 1 year ago

The evaluation background decorator had a bug where instead of applying the timeout value, it just flashed. I also shortened the timeout to 600ms, which I think is the SCIDE default. This timeout value could probably be a setting someday.

okhick commented 1 year ago

Reworked it a little. This PR now includes the following:

This is accomplished by setting codeEvaluationSettings in SuperColliderContext and then passing the context to evaluateString. This pattern should make it easy to inject more settings if we need to.