You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement LSP diagnostics (error/warning squiggles) for SDK connector configurations in C# projects. The LSP currently provides rich IntelliSense (completions, hover, CodeLens, code actions) but does not surface validation errors to the editor.
The LSP already builds a Roslyn CSharpCompilation per request and indexes the SDK via reflection (SdkIndex). It resolves connector names, operations, trigger payloads, dynamic values, and connections — but validation failures are only logged to stderr, never published as textDocument/publishDiagnostics.
Scope
Add a diagnostics pipeline that publishes warnings and errors to the editor when SDK usage is incorrect. The diagnostics are grouped into sub-issues below, each sized for a single session/PR.
Each validator receives the document URI, document text, SdkIndex, and services, and returns a list of Diagnostic objects with severity, range, code, and message.
Summary
Implement LSP diagnostics (error/warning squiggles) for SDK connector configurations in C# projects. The LSP currently provides rich IntelliSense (completions, hover, CodeLens, code actions) but does not surface validation errors to the editor.
Related: azure-functions-bucees-planning#912 — [Connectors] LSP release - C#
Background
The LSP already builds a Roslyn
CSharpCompilationper request and indexes the SDK via reflection (SdkIndex). It resolves connector names, operations, trigger payloads, dynamic values, and connections — but validation failures are only logged to stderr, never published astextDocument/publishDiagnostics.Scope
Add a diagnostics pipeline that publishes warnings and errors to the editor when SDK usage is incorrect. The diagnostics are grouped into sub-issues below, each sized for a single session/PR.
Sub-Issues
Total: 36 diagnostics across 5 validator categories plus the infrastructure.
Architecture
Each validator receives the document URI, document text,
SdkIndex, and services, and returns a list ofDiagnosticobjects with severity, range, code, and message.Diagnostic Code Ranges
CSDK001–CSDK099CSDK100–CSDK199CSDK200–CSDK299CSDK300–CSDK399CSDK400–CSDK499Implementation Order
Out of Scope (Large effort — future work)