OmniSharp / OmniSharp/csharp-language-server-protocol

Internal class WorkspaceConfigurationProvider is returned from Public APIs

Open
#953 0 comments 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

Problem

WorkspaceConfigurationProvider [1] is an internal class but it is returned from the public GetConfiguration API.

The GetConfiguration API [2] returns multiple Providers, and I'd like to be able to distinguish between them, as VS Code configuration for a Language Client end up in a WorkspaceConfigurationProvider. However, since WorkspaceConfigurationProvider is internal you cannot type check it.

image

Proposed Solution

Make WorkspaceConfigurationProvider Public.

Code References

[1] https://github.com/OmniSharp/csharp-language-server-protocol/blob/be43babe581813d7797a67ce2d43ca851f6d9d49/src/Server/Configuration/WorkspaceConfigurationProvider.cs#L7

[2] https://github.com/OmniSharp/csharp-language-server-protocol/blob/be43babe581813d7797a67ce2d43ca851f6d9d49/src/Protocol/Server/ILanguageServerConfiguration.cs#L31

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 src/Server/Configuration/WorkspaceConfigurationProvider.cs and inspect how it is returned by GetConfiguration in src/Protocol/Server/ILanguageServerConfiguration.cs. Confirm the public API's provider types and any accessibility constraints. Done means consumers can identify WorkspaceConfigurationProvider through the public API, with the class exposed publicly.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.