slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.7k stars 614 forks source link

LSP: report that we use UTF-8 to client that supports it #6742

Closed ogoffart closed 3 weeks ago

ogoffart commented 3 weeks ago

Version 3.17 of the spec added a position_encoding field in the ServerCapabilities, so use that.

Note that the spec says that UTF-16 is mendatory, and vscode only support utf-16, meaning we currently have a bug when having non-ascii in the source (#5669)