🐛 fix(text_coordinates): convert LSP UTF-16 positions

This commit is contained in:
csh
2026-07-12 12:15:46 +08:00
parent 16986281a7
commit 61d16d0147
5 changed files with 205 additions and 42 deletions
@@ -12,6 +12,7 @@ import lsp.test.provider.json_flow;
import lsp.test.provider.json_provider_coverage;
import lsp.test.provider.misc;
import lsp.test.provider.surface;
import lsp.test.provider.text_coordinates;
import lsp.test.provider.fixtures;
export int Run(int argc, char** argv)
@@ -59,6 +60,8 @@ export int Run(int argc, char** argv)
lsp::test::provider::ProviderMiscTests::Register(runner);
std::cout << " - Provider surface tests" << std::endl;
lsp::test::provider::ProviderSurfaceTests::Register(runner);
std::cout << " - Text coordinate tests" << std::endl;
lsp::test::provider::TextCoordinatesTests::Register(runner);
runner.runAllTests();
return runner.getFailedCount();