VS Code Build Error: Cant find Target Rules file

Trying to use VSCode with UE 4.19, made a C++ Blank Project, in the default "Documents/Unreal Projects/ " directory, named StateManagerProject.

In the debug menu running, StateManagerProjectEditor (Development), launch task.
The error comes from the, StateManagerProjectEditor Win64 Development Build, pre launch task:

Creating makefile for StateManagerProjectEditor (no existing makefile)

ERROR: Couldnt find target rules file for target 'StateManagerProjectEditor' in
 rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
'.
       Location: C:\Program Files\Epic Games\UE_4.19\Engine\Intermediate\Build\B
uildRules\UE4Rules.dll
       Target rules found:
        UE4Editor - C:\Program Files\Epic Games\UE_4.19\Engine\Source\UE4Editor.
Target.cs
        UE4Game - C:\Program Files\Epic Games\UE_4.19\Engine\Source\UE4Game.Targ
et.cs
        UnrealHeaderTool - C:\Program Files\Epic Games\UE_4.19\Engine\Source\Pro
grams\UnrealHeaderTool\UnrealHeaderTool.Target.cs

The terminal process terminated with exit code: 5

EDIT:
Tried making the same C++ Blank Project but changed the directory to “Documents/UnrealProjects/” without a space, and everything compiled as it should.

Fix: Remove Space from Unreal Projects?

I can confirm whitespaces are the issue. Tested this on 4.19.1 with a path including spaces (same error) and when removed, the tasks work as intended. The path is most likely being split at some point, I’ll dig into it further.