Hello,
In 4.18 Preview 4, “Generate Visual Studio Code Project” and “Refresh Visual Studio Code Project” don’t work properly. They just create or update a *.sln project, rather than constructing/refreshing .vscode folder. Even after generating a proper .vscode folder using “UnrealBuildTool.exe” with “-vscode” option, refresh option creates a *.sln project, dismissing .vscode folder.