private getDefaultProjectPath()

in src/extension/src/client-modules/defaults.ts [45:55]


  private getDefaultProjectPath(): string {
    let projectPath = vscode.workspace.getConfiguration().get<string>("wts.changeSaveToLocation");

    //if path is wrong return default path
    if (projectPath !== undefined && !fs.existsSync(path.join(projectPath, ""))) {
      Logger.appendLog("EXTENSION", "error", `The configured default path '${projectPath}' does not seem to be valid.`);
      projectPath = os.homedir();
    }

    return projectPath !== undefined && projectPath !== "" ? projectPath : os.homedir();
  }