1c-syntax / bsl-language-server

Реализация Language Server Protocol для языка 1C (BSL)
https://1c-syntax.github.io/bsl-language-server
Other
307 stars 105 forks source link

Позиционирование canonicalKeyWord #89

Closed asosnoviy closed 5 years ago

asosnoviy commented 5 years ago

image

lChagelishvili commented 5 years ago

Я так понимаю, последний символ не добирает?

nixel2007 commented 5 years ago

Да, похоже на то

asosnoviy commented 5 years ago

https://github.com/1c-syntax/bsl-language-server/blob/develop/src/main/java/org/github/_1c_syntax/bsl/languageserver/diagnostics/CanonicalSpellingKeywordsDiagnostic.java#L476

Может тут?

nixel2007 commented 5 years ago

ванга говорит, что туда на просто передать token. и хелпер сам подсчитает нужный range

ср, 20 февр. 2019 г. в 13:29, Alexey Sosnoviy notifications@github.com:

https://github.com/1c-syntax/bsl-language-server/blob/develop/src/main/java/org/github/_1c_syntax/bsl/languageserver/diagnostics/CanonicalSpellingKeywordsDiagnostic.java#L476

Может тут?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/1c-syntax/bsl-language-server/issues/89#issuecomment-465517277, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFJKMzoYjPla8HFuGDKlD8gKZmtnoJgks5vPSN_gaJpZM4bDvV8 .

lChagelishvili commented 5 years ago

Да, я нашел уже, будет скоро PR )