Closed hunger closed 2 days ago
The .envrc file is gone.
But why is that even needed? The default should already be to read this env variable.
We enable SLINT_ENABLE_EXPERIMENTAL_FEATURES when building slint-lsp. That makes sure it can use the ComponentContainer in its UI.
This PR add code evaluating SLINT_ENABLE_EXPERIMENTAL_FEATURES when running slint-lsp. It makes sure I can preview a UI containing the ComponentContainer (aka. the experimental feature;-) in the live-preview.
The compiler actually reads that variable, but the LSP does configure the ComponentCompiler itself and needs to enable the experimental flag in the compiler configuration itself.
This code: https://github.com/slint-ui/slint/blob/7f05b8aa398e6de57e8ee272ba1398e9e5f9e883/internal/compiler/lib.rs#L156 should also be run when running the LSP. or why is it not enabled.
I was confused.
This needs an extra switch:-)