OmniSharp / OmniSharp/csharp-language-server-protocol

How to update user configuration from the language server

Open
#483 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
638
Forks
109
Avg merge
1m
Merged PRs (30d)
2

Description

Hi.

I need to write something to the configuration file (user's settings.json). I want to be able to write to it based on some condition and also have it exposed in the window's settings page (for the user to view it/ change it if he/she wants to).

I can get the configuration by calling LanguageServer.Workspace.RequestConfiguration(...) and I can even change the value of the return JToken. But this change appears to be local/in memory only and not in the actual settings.json on disk.

How can I persist the changes I make to the configuration?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with LanguageServer.Workspace.RequestConfiguration and the settings.json behavior described in the issue. Determine whether the language server protocol exposes a supported way to persist configuration changes and have them appear in the window settings page. Done means documenting the supported approach or clearly recording that persistence is not available.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.