Skip to content

Commit 3c7f98c

Browse files
author
boquanfu
committed
fix: col diff from css warnings
1 parent ef8b9f0 commit 3c7f98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class Client {
103103
const src = doc.getText()
104104
const ret = res.addSource(srcPath, src) as CompilationError[]
105105
const diagList = ret.map((err) => {
106-
const range = new vscode.Range(err.startLine, err.startCol, err.endLine, err.endCol)
106+
const range = new vscode.Range(err.startLine, err.startCol - 1, err.endLine, err.endCol - 1)
107107
const message = err.message
108108
const severity = vscode.DiagnosticSeverity.Warning
109109
const diag = new vscode.Diagnostic(range, message, severity)

0 commit comments

Comments
 (0)