about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-14 06:28:40 +0000
committerbors <bors@rust-lang.org>2024-04-14 06:28:40 +0000
commit7dad0a231e201f1ef3130b0b7d4194d465615b07 (patch)
treeebb1e8aea0863d05515eb7fa49194b8a93a00a98 /docs/dev
parentbeb205f347d676ec3dc6e6d13793a7c814f0a417 (diff)
parent2c5c12acfe826625b7ccfeb26b26d5da94e6ee45 (diff)
downloadrust-7dad0a231e201f1ef3130b0b7d4194d465615b07.tar.gz
rust-7dad0a231e201f1ef3130b0b7d4194d465615b07.zip
Auto merge of #17063 - Veykril:inlay-hints-fix, r=Veykril
fix: Fix inlay hint resolution being broken

So, things broke because we now store a hash (u64) in the resolution payload, but javascript and hence JSON only support integers of up to 53 bits (anything beyond gets truncated in various ways) which caused almost all hashes to always differ when resolving them. This masks the hash to 53 bits to work around that.

Fixes https://github.com/rust-lang/rust-analyzer/issues/16962
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index 939b1819c7e..1b7534a549f 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
 <!---
-lsp/ext.rs hash: 223f48a89a5126a0
+lsp/ext.rs hash: 4aacf4cca1c9ff5e
 
 If you need to change the above hash to make the test pass, please check if you
 need to adjust this doc as well and ping this issue:
@@ -444,7 +444,7 @@ interface DiscoverTestResults {
     // For each file which its uri is in this list, the response
     // contains all tests that are located in this file, and
     // client should remove old tests not included in the response.
-    scopeFile: lc.TextDocumentIdentifier[] | undefined;    
+    scopeFile: lc.TextDocumentIdentifier[] | undefined;
 }
 ```