terminal/src/cascadia
Matt Peterson d5974f4c91
Automatically convert paths dropped on WSL instances (#11625)
Drag and drop does not work for WSL because paths are pasted as windows
paths having incorrect path separator and path root.  This PR adds code
to correct the path in TerminalControl before pasting to WSL terminals.

One problem with this approach is that it assumes the default WSL
automount root of "/mnt". It would be possible to add a setting like
"WslDragAndDropMountRoot"... but I decided it if someone wants to change
automount location it would be simple enough just to create the "/mnt"
symlink in WSL.

## Validation
Couldn't find an obvious place to add a test.  Manually tested
cut-n-paste from following paths:
- "c:\"
- "c:\subdir"
- "c:\subdir\subdir"
- "\\wsl.localhost\<distro>"
- \\wsl.localhost\<distro>\subdir"

Closes #331
2021-11-10 21:19:52 +00:00
..
CascadiaPackage Enable DefApp hooks for stable (#11423) 2021-10-06 11:32:14 +00:00
inc Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
LocalTests_SettingsModel Standardize the color table order (#11602) 2021-11-04 22:13:22 +00:00
LocalTests_TerminalApp Unify splitting panes and creating new tabs (#11305) 2021-11-04 22:29:58 +00:00
PublicTerminalCore Add noexcept to all FontInfo structs (#11640) 2021-10-29 14:08:41 +00:00
Remoting Persist window layout cont. save multiple windows (#11083) 2021-09-27 21:18:39 +00:00
ShellExtension Properly escape constructed wt command-lines (#11314) 2021-09-24 16:17:16 +00:00
TerminalApp Fix missing window border when use "win+arrow down" in fullscreen mode in Terminal (#11653) 2021-11-04 23:46:57 +00:00
TerminalAzBridge Upgrade to C++/WinRT 2.0.210825.3 (#11188) 2021-09-10 21:33:13 +00:00
TerminalConnection Make sure to format the error message with an UNSIGNED int (#11667) 2021-11-03 22:27:41 +00:00
TerminalControl Automatically convert paths dropped on WSL instances (#11625) 2021-11-10 21:19:52 +00:00
TerminalCore Standardize the color table order (#11602) 2021-11-04 22:13:22 +00:00
TerminalSettingsEditor Remove unused rendering settings from profile (#11685) 2021-11-04 14:50:59 -05:00
TerminalSettingsModel Automatically convert paths dropped on WSL instances (#11625) 2021-11-10 21:19:52 +00:00
UnitTests_Control Automatically convert paths dropped on WSL instances (#11625) 2021-11-10 21:19:52 +00:00
UnitTests_Remoting Persist window layout cont. save multiple windows (#11083) 2021-09-27 21:18:39 +00:00
UnitTests_TerminalCore Standardize the color table order (#11602) 2021-11-04 22:13:22 +00:00
ut_app Enable fast floating point model and fast debug linking (#11466) 2021-10-11 21:02:15 +00:00
WindowsTerminal Don't crash if we fail to BeginBufferedPaint (#11674) 2021-11-05 19:26:59 +00:00
WindowsTerminal_UIATests Enable /Zc:preprocessor (#10593) 2021-07-13 23:00:11 +00:00
WindowsTerminalUniversal Update to MUX 2.7 (#11240) 2021-09-20 22:08:55 +00:00
WinRTUtils Replace the UWP file export with the shell32 one (#11365) 2021-10-01 18:33:22 +00:00
WpfTerminalControl wpf: make sure to pack api-ms-win-core-synch-l1-2-0 (#10587) 2021-07-08 10:31:59 -05:00
WpfTerminalTestNetCore wpf: make sure to pack api-ms-win-core-synch-l1-2-0 (#10587) 2021-07-08 10:31:59 -05:00
wt Upgrade Windows SDK to 19041 (#10118) 2021-05-20 16:04:25 +00:00
CascadiaResources.build.items Update Cascadia Code to 2106.17 (#10455) 2021-06-18 20:47:19 +00:00