mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-27 13:56:21 +08:00
Fix diagnostics line position
This commit is contained in:
parent
83a9d70378
commit
030441a5d3
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ export default class LiveEditor {
|
|||
const doc = this.view.state.doc;
|
||||
|
||||
const diagnostics = codeMarkers.map((marker) => {
|
||||
const line = doc.lineAt(marker.line);
|
||||
const line = doc.line(marker.line);
|
||||
|
||||
const [, leadingWhitespace, trailingWhitespace] =
|
||||
line.text.match(/^(\s*).*?(\s*)$/);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue