Skip to content

Commit 4ec2149

Browse files
fixed bug in identifier
1 parent 60fd4dc commit 4ec2149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Protocol/Models/TextDocumentIdentifier.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public override bool Equals(object? obj)
4242

4343
public static implicit operator TextDocumentIdentifier(string uri) => new TextDocumentIdentifier { Uri = uri };
4444

45-
private string DebuggerDisplay => Uri.ToString()!;
45+
private string DebuggerDisplay => ((Uri?)Uri)?.ToString() ?? string.Empty;
4646

4747
/// <inheritdoc />
4848
public override string ToString() => DebuggerDisplay;

0 commit comments

Comments
 (0)