Open
Description
The common case of setting URI on lsp4j message object is URI#toString()
call. For example LSP4E sets uri on the TextDocumentIdentifier
via URI#toString()
call rather than URI#toASCIIString()
. Therefore if the file name is ClassWithSpécialCharacter.java
then only URI#toASCIIString()
would produce the valid URI with escaped non-ASCII char é
It'd be great if TextDocumentIdentifier
(and perhaps other classes) taking string URIs would normalize the input URI to guard against the issue described above.