Description
opening a new file with code -r bar.ttcn3 on a remote linux host using the ssh-remote vscode extension supplies following URI as parameter of the didOpen notification:
[Trace - 10:12:35 AM] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "untitled://ssh-remote%2B192.168.1.10/home/moosq/examples/bar.ttcn3",
"languageId": "ttcn3",
"version": 1,
"text": ""
}
}
Using %2B
instead of the +
character does not conform to the specification of the authority part from RFC3986 page 20 where such an encoding is solely reserved for non-ascii characters:
The reg-name syntax allows percent-encoded octets in order to
represent non-ASCII registered names in a uniform way that is
independent of the underlying name resolution technology. Non-ASCII
characters must first be encoded according to UTF-8 [STD63], and then
each octet of the corresponding UTF-8 sequence must be percent-
encoded to be represented as URI characters. URI producing
applications must not use percent-encoding in host unless it is used
to represent a UTF-8 character sequence.