private JsonObject addToExistingWorkspace(File projectDir, JsonObject workspace, JsonObject settings,
			JsonObject launch) {
		File projectParentDir = projectDir.getParentFile();
		String folderName = projectDir.getName();
		if (projectParentDir != null) {
			folderName = projectParentDir.getName() + "/" + folderName;
		}

		JsonArray foldersArray = workspace.getAsJsonArray("folders");
		JsonObject folderObject = new JsonObject();
		folderObject.addProperty("name",
			projectDir.getParentFile().getName() + "/" + projectDir.getName());
		folderObject.addProperty("path", projectDir.getAbsolutePath());
		if (!foldersArray.contains(folderObject)) {
			foldersArray.add(folderObject);
		}
		return workspace;
	}
Adds the given project directory to the given workspace

@param projectDir The VSCode project directory to add
@param workspace The VSCode workspace to add to
@param settings The VSCode settings JSON
@param launch The VSCode launch JSON
@return The new workspace JSON with the project added
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/vscode/VSCodeIntegrationPlugin.java