爲了 https://github.com/Microsoft/language-server-protocol/issues/376 的話題能繼續下去,讓利益相關者(Microsoft VSCode團隊)知道支援UTF-16 code units以外計數方式(主要是UTF-8 bytes or UTF-32 codepoints)。希望用LSP的同學們完善一下:
Questionnaire : counting method of Position.character offsets supported by language servers/clients
2 个赞
ppphp
3
刚刚看spec的时候看到偏移用utf-16,都有点蒙圈