Skip to content

Commit 63a5adc

Browse files
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Elie Richa <[email protected]>
1 parent d86f87d commit 63a5adc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

liblsp_3_16/source/lsp-types.ads

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)