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

Handle configuration changes without needing to restart #26

Open
jiribenes opened this issue Sep 29, 2024 · 0 comments
Open

Handle configuration changes without needing to restart #26

jiribenes opened this issue Sep 29, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jiribenes
Copy link
Contributor

Something like the following should work:

    context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(e => {
        if (e.affectsConfiguration('effekt')) {
            const newConfig = vscode.workspace.getConfiguration('effekt');
            handleConfigChange(newConfig, client);
        }
    }));

The easiest thing is to probably restart the LSP server, just be careful to do it correctly :)

@jiribenes jiribenes added enhancement New feature or request good first issue Good for newcomers labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant