Skip to content

Commit 7fc384d

Browse files
committed
Support opening filenames with spaces from tools panel.
1 parent 8302af0 commit 7fc384d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LuaDkmDebuggerCommon/ToolWindows/ScriptListWindowControl.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ private void ListViewItem_DoubleClick(object sender, RoutedEventArgs args)
4949

5050
var cmdobj = _state.dte.Commands.Item("File.OpenFile");
5151

52-
string name = scriptEntry.path;
52+
// Support filenames and directories with whitespaces in path.
53+
string name = $"\"{scriptEntry.path}\"";
5354
object none = null;
5455

5556
_state.dte.Commands.Raise(cmdobj.Guid, cmdobj.ID, name, none);

0 commit comments

Comments
 (0)