lsp4intellij
lsp4intellij copied to clipboard
Diagnostics are not shown if the start and end character offset are the same
Description: Consider the following scenario,
function test() returns {
}
In the above, I have a diagnostics at the start of the {. For example, my params look as below,
{
"start":{
"line":0,
"character":25
},
"end":{
"line":0,
"character":25
}
}
But it has no sense, hasn't it?.. You can't highlight range with 0 length.
@nixel2007 I was thinking if we can provide the same behaviour as in VSCode since VSCode properly provides the diagnostic in this scenario.
@nadeeshaan could you share a screenshot from vscode with zero-length diagnostic?
@nixel2007 please refer the following,

Hm. Interesting. Looks like vscode adds some "virtual" space char for highlighting