Skip to content
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

Introduce runtime language configuration and UI settings #344

Closed
dhuebner opened this issue Jan 7, 2022 · 1 comment · Fixed by #519
Closed

Introduce runtime language configuration and UI settings #344

dhuebner opened this issue Jan 7, 2022 · 1 comment · Fixed by #519
Assignees
Milestone

Comments

@dhuebner
Copy link
Contributor

dhuebner commented Jan 7, 2022

Some aspects of a language and its runtime behavior need to be configured by the user depending on the particular runtime environment and/or project setup.
One use-case is e.g. DefaultIndexManager.skipFolder where we need to exclude some folders from traversing during indexing.

The idea is to have a service that provides configurations for special property or a key (compared to Xtext PreferenceStoreAccess) at runtime.

When using in an IDE e.g. VSCode extension, we will need a corresponding implementation. In case of VS Code this can be user or workspace specific:
Bildschirmfoto 2022-01-07 um 12 56 04

For langium-vscode it would be nice to have a boilerplate code generated if possible.

@spoenemann
Copy link
Contributor

For langium-vscode it would be nice to have a boilerplate code generated if possible.

Configuration entries are declared in the package.json:
https://code.visualstudio.com/api/references/contribution-points#contributes.configuration

The language server can request configuration from the client:
https://microsoft.github.io/language-server-protocol/specification#workspace_configuration

This seems like there's not much to generate. Maybe we can add utility code using the configuration request for initializing the index.

@dhuebner dhuebner self-assigned this May 12, 2022
dhuebner added a commit that referenced this issue May 13, 2022
dhuebner added a commit that referenced this issue Jul 1, 2022
dhuebner added a commit that referenced this issue Jul 15, 2022
dhuebner added a commit that referenced this issue Jul 15, 2022
dhuebner added a commit that referenced this issue Jul 15, 2022
dhuebner added a commit that referenced this issue Jul 25, 2022
dhuebner added a commit that referenced this issue Jul 25, 2022
dhuebner added a commit that referenced this issue Jul 29, 2022
dhuebner added a commit that referenced this issue Aug 19, 2022
dhuebner added a commit that referenced this issue Aug 19, 2022
dhuebner added a commit that referenced this issue Aug 19, 2022
dhuebner added a commit that referenced this issue Aug 19, 2022
dhuebner added a commit that referenced this issue Aug 19, 2022
dhuebner added a commit that referenced this issue Sep 1, 2022
dhuebner added a commit that referenced this issue Sep 5, 2022
Configurable folder excludes #344
@spoenemann spoenemann added this to the v0.5.0 milestone Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants