File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -295,10 +295,11 @@ package LSP.Types is
295295
296296 type LSP_URI is private ;
297297 -- Type for LSP URI.
298- -- Please avoind comparing URIs with "=": two URIs can point the same file
299- -- even when they are distinct. In most case we shouldn't compare URIs,
300- -- but find corresponding files using GNATCOLL.VFS and compare their
301- -- normalized names instead.
298+ --
299+ -- Note that URIs can be different while pointing to the same file. So
300+ -- when wanting to determine if two URIs represent the same file, avoid
301+ -- comparing them with "=". Instead, the URIs should be converted to
302+ -- normalized paths before comparison (e.g. with GNATCOLL.VFS).
302303
303304 function Equal (Left, Right : LSP_URI) return Boolean;
304305 -- Let's try to avoid URI comparison.
You can’t perform that action at this time.
0 commit comments