Skip to content
CAI
Software that uses CAICheck a score

razzmatazz/csharp-language-server

59.5

Adequate · 13 November 2026

22.2k

lines of production code

F#

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Introduce MetaModelGenerator tool for LSP type generation

Added the MetaModelGenerator tool, which generates F\# types for the Language Server Protocol. The generator uses System.Text.Json for serialization (replacing Newtonsoft.Json) and includes logic to handle LSPAny as JsonElement, merge structure-literal unions into single optional-record types, and apply custom DebuggerDisplay attributes to Range, Position, and Diagnostic records.

MetaModelGenerator · high confidence

Introduce diagnose command and configurable logging

The C\# Language Server now includes a \--diagnose\ command to help troubleshoot environment and configuration issues, and adds a \--log-level\ argument to control verbosity (defaulting to \info\). Logging is now handled via Microsoft.Extensions.Logging, which forwards trace messages to the LSP client and includes timestamps in console output.

src/CSharpLanguageServer · high confidence

New C\# metadata and call hierarchy handlers

The language server now supports viewing source code for generated documents and decompiled metadata symbols via the new CSharpMetadata handler, and provides call hierarchy navigation (incoming and outgoing calls) via the CallHierarchy handler, which also counts constructor initializers as outgoing calls.

src/CSharpLanguageServer/Handlers · high confidence

Project restructured with Nix support and standardized development environment

The repository has been reorganized to include a Nix flake for reproducible development, a global.json pinning the .NET SDK to version 10.0.100, and an .editorconfig enforcing consistent code style (UTF-8, LF line endings, 120-character max line length). The solution file was updated to reflect the new project layout, including the test project, and a .gitignore was added to exclude common IDE and build artifacts.

(repo-wide) · high confidence

Behavioural changes

Enforces F\# code formatting via Fantomas pre-commit hook

A new pre-commit hook has been added to the .githooks directory to automatically check that staged F\# files (.fs, .fsi, .fsx) are formatted according to Fantomas standards. This ensures consistent code style before commits are finalized, excluding the vendored Ionide.LanguageServerProtocol directory. Developers must have the dotnet fantomas tool installed and configured via core.hooksPath to benefit from this check.

.githooks · high confidence

Language Server Protocol support updated to version 3.17.0

The Ionide.LanguageServerProtocol library has been updated to support LSP specification version 3.17.0. This update imports the new metaModel and schema definitions for version 3.17.0, adding support for new protocol features such as notebook document synchronization (open, change, save, close), type hierarchy (prepare, supertypes, subtypes), and various refresh requests for semantic tokens, inlay hints, code lenses, inline values, and diagnostics. The library also switches its JSON serialization from Newtonsoft.Json to System.Text.Json for the active code path, while keeping the legacy Newtonsoft/StreamJsonRpc path disabled by default to reduce dependencies.

Ionide.LanguageServerProtocol, src/Ionide.LanguageServerProtocol · high confidence

Major internal rewrite of the C\# language server runtime and workspace model

The C\# language server has been refactored with a new internal architecture, introducing a structured workspace phase lifecycle (Uninitialized, Configured, Loading, Ready, Reconfiguring, ShuttingDown) and a dedicated request scheduling system that manages concurrency and retirement order. This change replaces the previous state loop with a mailbox-based event loop, implements a new JSON-RPC transport using System.Text.Json, and adds support for virtual csharp:/ URIs to serve decompiled metadata and source-generated documents. Additionally, the server now supports Roslyn analyzers, Razor (.cshtml) document diagnostics, and improved debug information exposure via $/csharp/debugInfo.

CSharpLanguageServer · high confidence

Migrate LSP client transport and progress reporting to System.Text.Json

The LSP client implementation in src/CSharpLanguageServer/Lsp/Client.fs has been rewritten to use System.Text.Json for serializing and deserializing JSON-RPC messages, replacing the previous Newtonsoft.Json-based transport. This change includes a new ProgressReporter component that correctly respects the client's window.workDoneProgress capability, ensuring progress notifications are only sent when supported. The server-side handler registration in Server.fs now utilizes this new client interface and sanitizes completion item resolve parameters using System.Text.Json before processing.

src/CSharpLanguageServer/Lsp · high confidence

Migrate LSP implementation to fsac/LanguageServerProtocol

The \src/LSP\ directory has been refactored to use the \fsac/LanguageServerProtocol\ library, replacing the previous custom-built LSP infrastructure. This change removes the internal modules responsible for manual JSON serialization and deserialization (\Ser.fs\), message parsing (\Parser.fs\), tokenization (\Tokenizer.fs\), logging (\Log.fs\), and document state management (\DocumentStore.fs\). By adopting the standard library, the language server now relies on external abstractions for handling LSP protocol details, simplifying the codebase and ensuring compatibility with standard LSP tooling.

src/LSP · high confidence

Support for Roslyn Analyzers and improved diagnostics handling

The C\# language server now integrates with Roslyn Analyzers to provide richer code analysis and diagnostics. A new \Analyzers.fs\ module manages shared project analysis results and caches them per solution snapshot, ensuring that both compiler and analyzer diagnostics are collected efficiently. The \Document.fs\ module has been updated to handle document formatting options, including end-of-file newline normalization, while \Conversions.fs\ adds support for mapping source-generated documents to LSP locations. Additionally, \Solution.fs\ improves target framework resolution by parsing project XML directly when possible to avoid unnecessary MSBuild invocations, and \Symbol.fs\ refines metadata name generation to prevent crashes on certain symbol types.

src/CSharpLanguageServer/Roslyn · high confidence

Test coverage

Expanded test coverage for C\# language server features; Stabilized test infrastructure with pooled LSP clients and expanded test coverage.

Dependencies

Upgrade to .NET 10 and Roslyn 5.9.0 with Central Package Management

The C\# language server has been upgraded to target .NET 10.0 and utilizes Roslyn 5.9.0, enabling support for the latest .NET runtime features and C\# language capabilities. The project now implements Central Package Management (CPM) via a new Directory.Packages.props file to standardize dependency versions across the solution. Additionally, the legacy LSP module has been removed in favor of the Ionide.LanguageServerProtocol library, and the tool is now packaged as a distributable .NET tool named csharp-ls.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 64 → 59 (-4.8)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 69 → 69 (+0.0)
  • Architecture 62 → 62 (+0.0)
  • Maturity 60 → 50 (-9.9)
  • Readiness 68 → 68 (+0.0)
  • Security 80 → 75 (-5.0)
  • Performance 100 → 100 (+0.0)

Resolved (1)

  • No ADRs found

New (3)

  • Edited copies of one member (6 members, 20+ corresponding lines) (src/CSharpLanguageServer/Handlers/Declaration.fs)
  • Edited copy of a member (23 corresponding lines) (src/CSharpLanguageServer/Handlers/Color.fs)
  • No ADRs found (src/CSharpLanguageServer/CSharpLanguageServer.fsproj)

Changes since last survey

  • 1 commits — 0 feature/other, 1 fixes

By area

  • src/CSharpLanguageServer — 1 commit

Notable commits

  • fix: fix(codeAction): don't advertise codeActionProvider statically when registered dynamically

Architecture

  • Unchanged — 0 containers · 4 contexts · 3 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

razzmatazz/csharp-language-server was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit be558d5a1f643b77aab93813c099e019d964f4f9 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.