effekt-lang / effekt-lang/effekt

LSP server ignores backend setting in configuration

Open
#1,048 1 comment 0 reactions 0 assignees View on GitHub
area:lsp feature
Dominant language
Scala
Stars
469
Forks
41
Avg merge
1d 16h
Merged PRs (30d)
23

Description

As a user of the VSCode extension, I want a change to the backend setting to take immediate effect so that I don't have to restart the extension.

Our VSCode plugin already sends the `backend` string as part of the configuration (e.g. via LSP `DidChangeConfigurationParams`). However, currently, `compileSource` takes an `EffektConfig` which is an immutable `ScallopConf`. It is not intended to change the `EffektConfig` once it has been parsed.

As a solution, we want to separate the CLI arguments from the configuration tracked internally. For this I propose the following steps:

* [ ] Disentangle configuration from kiama
* [ ] Separate CLI arguments and internal configuration
* [ ] Change the `backend` field on the internal (mutable) configuration

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.