Skip to content

Instantly share code, notes, and snippets.

View paulditerwich's full-sized avatar

paulditerwich

View GitHub Profile
@paulditerwich
paulditerwich / csharp-lsp-fix-2.1.2.sh
Last active January 9, 2026 06:53
csharp-lsp-fix-2.1.2.sh
#!/bin/bash
# csharp-lsp-fix.sh - Patch Claude Code 2.1.2 to support csharp-ls
# https://github.com/anthropics/claude-code/issues/16360
#
# Usage: ./csharp-lsp-fix.sh [--check|--restore]
#
# Exit codes:
# 0 = success (patched, restored, or already patched)
# 1 = error (file not found, unsupported version)
# 2 = patch needed (--check only)
@paulditerwich
paulditerwich / csharp-lsp-fix.sh
Created January 8, 2026 10:45
Fix csharp-ls for Claude Code 2.1.1 - adds workspace/configuration handler
#!/bin/bash
# csharp-lsp-fix.sh - Patch Claude Code 2.1.x to support csharp-ls
# https://github.com/anthropics/claude-code/issues/16360
#
# Usage: ./csharp-lsp-fix.sh [--check|--restore]
set -e
CLI_JS="${CLI_JS:-${HOME}/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js}"
BACKUP="${CLI_JS}.backup-csharp-fix"