You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like Monaco gives a line number 1 higher than the actual number of lines, in the case of EOF issues. So when indexing into lines, the result is undefined.
The text was updated successfully, but these errors were encountered:
π What did you see?
This line:
language-service/src/service/getGherkinDiagnostics.ts
Line 33 in c7cdd0a
can throw an uncaught exception in some circumstances
β What did you expect to see?
No exception
π¦ Which tool/library version are you using?
Cucumber lang service 1.6.0
π¬ How could we reproduce it?
Go to live demo https://cucumber.github.io/monaco/
Delete the table. Now start a new doc string with 3 quotes. Your editor content will now be
Check the console. It contains this error
π Any additional context?
It seems like Monaco gives a line number 1 higher than the actual number of lines, in the case of EOF issues. So when indexing into
lines
, the result is undefined.The text was updated successfully, but these errors were encountered: