Skip to content

Bitbucket Server: exception when hovering whitespace at the beginning of a line

Created by: lguychard

The following exception can be seen in the console when hovering over whitespace at the beginning of a line:

hover.ts:49 Error: Illegal argument: character must be non-negative
    at Object.illegalArgument (extensionHostWorker.bundle.js:614)
    at new Position (extensionHostWorker.bundle.js:797)
    at toPosition (extensionHostWorker.bundle.js:34855)
    at AsyncFunction.<anonymous> (extensionHostWorker.bundle.js:34531)
    at async MessagePort.<anonymous> (extensionHostWorker.bundle.js:194)

It doesn't break code intelligence on the code view, but still shouldn't be seen.