We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4d407 commit c3883a4Copy full SHA for c3883a4
calm-plugins/vscode/src/features/validation/validation-service.ts
@@ -292,8 +292,8 @@ export class ValidationService implements vscode.Disposable {
292
293
if (output.line_start !== undefined && output.line_end !== undefined) {
294
// ValidationOutput uses 1-based line numbers
295
- const startLine = Math.max(0, (output.line_start ?? 1) - 1)
296
- const endLine = Math.max(0, (output.line_end ?? 1) - 1)
+ const startLine = Math.max(0, output.line_start - 1)
+ const endLine = Math.max(0, output.line_end - 1)
297
const startChar = output.character_start ?? 0
298
const endChar = output.character_end ?? doc.lineAt(endLine).text.length
299
0 commit comments