Skip to content

Commit 90c3035

Browse files
committed
Fix search for files without '@' at the start of the name
1 parent 93b8abe commit 90c3035

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

LuaDkmDebugger/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="LuaDkmDebugger.e3e2ef04-27c9-46a6-ad45-79bd29067eb6" Version="0.2.5" Language="en-US" Publisher="WheretIB" />
4+
<Identity Id="LuaDkmDebugger.e3e2ef04-27c9-46a6-ad45-79bd29067eb6" Version="0.2.6" Language="en-US" Publisher="WheretIB" />
55
<DisplayName>C++ debugger extensions for Lua</DisplayName>
66
<Description xml:space="preserve">This Visual Studio extension enables limited support for inspection of Lua (Version 5.3) state in C++ applications during debug.</Description>
77
<License>license.txt</License>

LuaDkmDebuggerComponent/LocalComponent.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,22 +499,22 @@ string CheckConfigPaths(string winSourcePath)
499499
{
500500
if (processData.workingDirectory != null)
501501
{
502-
string test = Path.GetFullPath(Path.Combine(processData.workingDirectory, finalPath)) + winSourcePath.Substring(1);
502+
string test = Path.GetFullPath(Path.Combine(processData.workingDirectory, finalPath)) + winSourcePath;
503503

504504
if (File.Exists(test))
505505
return test;
506506
}
507507

508508
{
509-
string test = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(process.Path), finalPath)) + winSourcePath.Substring(1);
509+
string test = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(process.Path), finalPath)) + winSourcePath;
510510

511511
if (File.Exists(test))
512512
return test;
513513
}
514514
}
515515
else
516516
{
517-
string test = finalPath + winSourcePath.Substring(1);
517+
string test = finalPath + winSourcePath;
518518

519519
if (File.Exists(test))
520520
return test;
@@ -531,7 +531,7 @@ string CheckConfigPaths(string winSourcePath)
531531
{
532532
string winSourcePath = frameData.source.Replace('/', '\\');
533533

534-
filePath = CheckConfigPaths(winSourcePath);
534+
filePath = CheckConfigPaths(winSourcePath.Substring(1));
535535

536536
if (filePath == null)
537537
{

0 commit comments

Comments
 (0)