MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / severityLabel

Function severityLabel

vscode-extension/src/extension.ts:187–195  ·  view source on GitHub ↗
(s: vscode.DiagnosticSeverity)

Source from the content-addressed store, hash-verified

185// ─────────────────────────────────────────────────────────────────────────────
186
187function severityLabel(s: vscode.DiagnosticSeverity): string {
188 switch (s) {
189 case vscode.DiagnosticSeverity.Error: return 'error';
190 case vscode.DiagnosticSeverity.Warning: return 'warning';
191 case vscode.DiagnosticSeverity.Information: return 'info';
192 case vscode.DiagnosticSeverity.Hint: return 'hint';
193 default: return 'issue';
194 }
195}
196
197/** Collect language-server diagnostics for a file (optionally only those touching `range`). */
198function collectDiagnostics(uri: vscode.Uri, range?: vscode.Range): { text: string; count: number } {

Callers 1

collectDiagnosticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected