alephium / ralph-lsp

Ralph language server
7 stars 1 forks source link

Prioritise default configurations from `alephium.config.ts` #295

Closed simerplaha closed 2 months ago

simerplaha commented 2 months ago

Towards resolving Default Settings in #291.

This PR ensures that when a build configuration is missing from alephium.config.ts, its default value mentioned in the documentation is used:

This ensures that alephium.config.ts and its defaults are always prioritised over any configuration defined in ralph.json.

A new project containing a *.ral file will still start compilation. But when an empty alephium.config.ts is created, that *.ral file will have to be moved to the contracts directory (alephium.config.ts's default) for compilation.