Merge pull request #1609 from prupipho/jud/1585-EmptyPathIfNoPathConfig-II
- fix defaulting to the path of the user
This commit is contained in:
Коммит
2e6b86289a
|
@ -47,7 +47,9 @@ export class Defaults extends WizardServant {
|
|||
|
||||
private getDefaultProjectPath(): string {
|
||||
const projectPath = vscode.workspace.getConfiguration().get<string>("wts.changeSaveToLocation");
|
||||
return projectPath ?? os.homedir();
|
||||
return (projectPath !== undefined && projectPath !== "")
|
||||
? projectPath
|
||||
: os.homedir();
|
||||
}
|
||||
|
||||
private async inferProjectName(outputPath: string): Promise<string> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче