From e4396a3192fa2f921ef9d06b2e6c0c68f9d819aa Mon Sep 17 00:00:00 2001 From: Neloreck Date: Mon, 20 Jan 2025 02:28:52 +0200 Subject: [PATCH] Update file path checks to ignore case like windows usually does. --- LuaDkmDebuggerComponent/LocalComponent.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LuaDkmDebuggerComponent/LocalComponent.cs b/LuaDkmDebuggerComponent/LocalComponent.cs index f158e37..a71ef49 100644 --- a/LuaDkmDebuggerComponent/LocalComponent.cs +++ b/LuaDkmDebuggerComponent/LocalComponent.cs @@ -2609,8 +2609,12 @@ DkmResolvedDocument[] IDkmSymbolDocumentCollectionQuery.FindDocuments(DkmModule } var fileName = script.Value.resolvedFileName; + var sourceDocumentName = sourceFileId.DocumentName; - if (sourceFileId.DocumentName == fileName) + // Comparing file paths with ignoring case. + // OK for windows, but may be problematic with unix based operating systems. + // VS is not intended for usage with something else, so... + if (String.Equals(fileName, sourceDocumentName, StringComparison.OrdinalIgnoreCase)) { var dataItem = new LuaResolvedDocumentItem {