mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-24 11:44:44 +00:00
Got tasks and launch setup all gucci, and the error squiggle goes to the end ofthe line now 👌
This commit is contained in:
parent
fef2130bb9
commit
8c3f0e3e2c
4 changed files with 57 additions and 77 deletions
|
@ -82,7 +82,7 @@ function lint(text: string, uri: string) {
|
|||
|
||||
function calcRange(lineNum: number, uri: string): Range {
|
||||
const line = documents.get(uri).getText().split('\n')[lineNum - 1]
|
||||
return Range.create(lineNum - 1, line.length - line.leftTrim().length, lineNum - 1, prepareLine(line).length)
|
||||
return Range.create(lineNum - 1, line.length - line.leftTrim().length, lineNum - 1, prepareLine(line).length + 1)
|
||||
}
|
||||
|
||||
function prepareLine(line: string): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue